Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 2f9bbadde -> 6dbddd621


DISPATCH-613 - Used check_c_compiler_flag to check availability of pedantic 
compiler option. This closes #154


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

Branch: refs/heads/master
Commit: 6dbddd621c7353c1ae302bbd18500bc60d904361
Parents: 2f9bbad
Author: Ganesh Murthy <[email protected]>
Authored: Mon Mar 27 14:53:36 2017 -0400
Committer: Ganesh Murthy <[email protected]>
Committed: Mon Mar 27 15:08:21 2017 -0400

----------------------------------------------------------------------
 CMakeLists.txt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/6dbddd62/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/CMakeLists.txt b/CMakeLists.txt
index eacb375..2187774 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -127,7 +127,11 @@ include_directories(
 if (NOT CMAKE_SYSTEM_NAME STREQUAL SunOS)
  add_compile_options(-Werror)
  add_compile_options(-Wall)
- add_compile_options(-Wpedantic)
+ include(CheckCCompilerFlag)
+ check_c_compiler_flag(-Wpedantic HAS_PEDANTIC_FLAG)
+ if (HAS_PEDANTIC_FLAG)
+    add_compile_options(-Wpedantic)
+ endif(HAS_PEDANTIC_FLAG)
  add_compile_options(-std=gnu99)
  add_compile_options(-pthread)
 else (NOT CMAKE_SYSTEM_NAME STREQUAL SunOS)


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

Reply via email to