Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Take care of CFLAGS in cmake
authornavarro <navarro@caraja.(none)>
Thu, 24 May 2012 13:40:50 +0000 (15:40 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 24 May 2012 14:22:49 +0000 (16:22 +0200)
buildtools/Cmake/Flags.cmake

index a69b065..f588c47 100644 (file)
@@ -62,3 +62,7 @@ if(enable_coverage)
        endif(GCOV_PATH)
 endif(enable_coverage)
 
+if(NOT $ENV{CFLAGS} STREQUAL "")
+    message(STATUS "Add CFLAGS: \"$ENV{CFLAGS}\" to CMAKE_C_FLAGS")
+    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} $ENV{CFLAGS}")
+endif(NOT $ENV{CFLAGS} STREQUAL "")