]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Bugfix: Do not propagate -Werror to boost checks
authorMatthias Maier <tamiko@43-1.org>
Thu, 9 Mar 2023 22:52:53 +0000 (16:52 -0600)
committerMatthias Maier <tamiko@43-1.org>
Fri, 17 Mar 2023 12:44:54 +0000 (07:44 -0500)
cmake/configure/configure_20_boost.cmake

index a4acd21d361013d19f45cf00355a8ce1840d746e..3d5f00cf9fc3cb2841a32580b74f8e80d3cc7d77 100644 (file)
@@ -91,13 +91,16 @@ macro(feature_boost_find_external var)
 
         set(_binary_test_dir ${CMAKE_CURRENT_BINARY_DIR}/cmake/configure/TestBoostBugWorkdir)
 
+        set(_flags "${DEAL_II_CXX_FLAGS}")
+        strip_flag(_flags "-Werror")
+
         file(REMOVE_RECURSE ${_binary_test_dir})
         file(MAKE_DIRECTORY ${_binary_test_dir})
         execute_process(
           COMMAND ${CMAKE_COMMAND}
             -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
             -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
-            "-DCMAKE_CXX_FLAGS=${DEAL_II_CXX_FLAGS}"
+            "-DCMAKE_CXX_FLAGS=${_flags}"
             "-DCMAKE_EXE_LINKER_FLAGS=${DEAL_II_LINKER_FLAGS}"
             "-DCMAKE_SHARED_LINKER_FLAGS=${DEAL_II_LINKER_FLAGS}"
             "-DBOOST_INCLUDE_DIRS=${BOOST_INCLUDE_DIRS}"

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.