qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject qpid-proton git commit: PROTON-990 [C++ binding] Examples fail to link in Visual Studio 2012, 2015
Date Wed, 09 Sep 2015 21:15:42 GMT
Repository: qpid-proton
Updated Branches:
  refs/heads/master 6980703c4 -> fe6e2abe8


PROTON-990 [C++ binding] Examples fail to link in Visual Studio 2012, 2015

File missing from previous commit.


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/fe6e2abe
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/fe6e2abe
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/fe6e2abe

Branch: refs/heads/master
Commit: fe6e2abe8d0b4ab85ab3074e6bdcd44c05ccd7e4
Parents: 6980703
Author: Alan Conway <aconway@redhat.com>
Authored: Wed Sep 9 17:15:33 2015 -0400
Committer: Alan Conway <aconway@redhat.com>
Committed: Wed Sep 9 17:15:33 2015 -0400

----------------------------------------------------------------------
 cpp.cmake | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/fe6e2abe/cpp.cmake
----------------------------------------------------------------------
diff --git a/cpp.cmake b/cpp.cmake
new file mode 100644
index 0000000..09d1e98
--- /dev/null
+++ b/cpp.cmake
@@ -0,0 +1,40 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# Check C++ capabilities.
+
+include(CheckCXXSourceCompiles)
+
+if (CMAKE_CXX_COMPILER)
+  set(CMAKE_REQUIRED_FLAGS "${CXX_WARNING_FLAGS}")
+  check_cxx_source_compiles("long long ll; int main(int, char**) { return 0; }" HAS_LONG_LONG)
+  if (HAS_LONG_LONG)
+    add_definitions(-DPN_HAS_LONG_LONG=1)
+  endif()
+  check_cxx_source_compiles("#include <memory>\nstd::shared_ptr<int> i; std::unique_ptr<int>
u; int main(int, char**) { return 0; }" HAS_STD_PTR)
+  if (HAS_STD_PTR)
+    add_definitions(-DPN_HAS_STD_PTR=1)
+  endif()
+
+  # Check for boost
+  find_path(BOOST_INCLUDE_DIR boost/shared_ptr.hpp PATH_SUFFIXES include)
+  if (BOOST_INCLUDE_DIR)
+    add_definitions(-DPN_HAS_BOOST=1)
+  endif()
+endif()


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message