]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Enable -pedantic at the very beginning
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Mar 2013 11:13:39 +0000 (11:13 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Mar 2013 11:13:39 +0000 (11:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@29059 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/setup_compiler_flags_gnu.cmake

index 5604f0ac49ae94fefa738f7e907b07cc04f154dd..ae808667e3bbe3b29d314f6d5bcc896d294d2fcc 100644 (file)
@@ -34,6 +34,14 @@ ENDIF()
 #                      #
 ########################
 
+#
+# Set -pedantic if the compiler supports it.
+#
+IF(NOT (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND
+        CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.4"))
+  ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-pedantic")
+ENDIF()
+
 #
 # Enable all supported CPU instruction sets:
 #
@@ -52,14 +60,6 @@ ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-fpic")
 #
 ENABLE_IF_LINKS(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")
 
-#
-# Set -pedantic if the compiler supports it.
-#
-IF(NOT (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND
-        CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.4"))
-  ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-pedantic")
-ENDIF()
-
 
 #
 # Setup various warnings:

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.