]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Read in compiler/linker flags from environment as well
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 2 Oct 2012 13:09:38 +0000 (13:09 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 2 Oct 2012 13:09:38 +0000 (13:09 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26926 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/setup_cached_variables.cmake

index c149fc483e574939133a2178f97d735d36bb4fcf..5e221eeaa43f943ecbacee2bd6ad861352341f65 100644 (file)
@@ -95,6 +95,14 @@ FOREACH(flag ${flags})
 ENDFOREACH()
 
 
+#
+# Read in CFLAGS, CXXFLAGS and LDFLAGS from environment
+#
+SET_IF_EMPTY(CMAKE_C_FLAGS "$ENV{CFLAGS}")
+SET_IF_EMPTY(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS}")
+SET_IF_EMPTY(CMAKE_SHARED_LINKER_FLAGS "$ENV{LDFLAGS}")
+
+
 #
 # Set cached compiler flags to an empty string:
 #

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.