Repository: qpid-cpp
Updated Branches:
  refs/heads/master a82bd5450 -> 2ee9f79ed


QPID-7629: Update build metadata for compiler and library changes

 - Use CMake "SYSTEM" keyword when including headers for nss and sasl

 - Set C++ standard for gcc to gnu++03 to avoid the torrent of
   auto_ptr warnings on recend fedoras

Thanks to Chris Richardson for the patch!


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

Branch: refs/heads/master
Commit: 2ee9f79ed9371a7858e150c96a87fe051782afa7
Parents: a82bd54
Author: Justin Ross <[email protected]>
Authored: Sat Mar 11 07:41:27 2017 -0800
Committer: Justin Ross <[email protected]>
Committed: Sat Mar 11 07:41:27 2017 -0800

----------------------------------------------------------------------
 CMakeLists.txt     | 2 +-
 src/CMakeLists.txt | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-cpp/blob/2ee9f79e/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/CMakeLists.txt b/CMakeLists.txt
index beeeac8..eefeafd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -160,7 +160,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL GNU)
       set (CATCH_UNDEFINED "")
    endif (CMAKE_SYSTEM_NAME STREQUAL SunOS)
   set (NOSTRICT_ALIASING "-fno-strict-aliasing")
-  set (COMPILER_FLAGS "-fvisibility-inlines-hidden")
+  set (COMPILER_FLAGS "-fvisibility-inlines-hidden -std=gnu++03")
    # gcc 4.1.2 on RHEL 5 needs -Wno-attributes to avoid an error that's fixed
    # in later gcc versions.
    execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion

http://git-wip-us.apache.org/repos/asf/qpid-cpp/blob/2ee9f79e/src/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 7bc6f2c..6ee474f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -371,7 +371,7 @@ if (BUILD_SASL)
       qpid/sys/cyrus/CyrusSecurityLayer.h
       qpid/sys/cyrus/CyrusSecurityLayer.cpp
      )
-  include_directories (${CYRUS_SASL_INCLUDE_DIR})
+  include_directories (SYSTEM ${CYRUS_SASL_INCLUDE_DIR})
   set(sasl_LIB ${CYRUS_SASL_LIBRARY})
   set(HAVE_SASL 1)
 else (BUILD_SASL)
@@ -451,7 +451,7 @@ if (BUILD_SSL)
   # Add include directories and link directories for NSS
   # unfortunately this doesn't get done automatically for
   # libraries detected by FindPkgConfig
-  include_directories(${ssl_INCLUDES})
+  include_directories(SYSTEM ${ssl_INCLUDES})
   link_directories(${ssl_LIBDIRS})
 endif (BUILD_SSL)
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to