Code

cmake: add compile flags to C flags as well
authorjohanengelen <johanengelen@users.sourceforge.net>
Mon, 7 Apr 2008 08:22:07 +0000 (08:22 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Mon, 7 Apr 2008 08:22:07 +0000 (08:22 +0000)
CMakeScripts/ConfigCompileFlags.cmake

index 3c789931cd9430db9a3547896e75fa83cda6f0bd..618186ae320fb08f54d587ea1a2fccfd051cbb23 100644 (file)
@@ -22,6 +22,7 @@ ENDIF (WIN32)
 SET(DEFINE_FLAGS "${DEFINE_FLAGS} -DHAVE_SSL -DRELAYTOOL_SSL=\"static const int libssl_is_present=1; static int __attribute__((unused)) libssl_symbol_is_present(char *s){ return 1; }\" ")
 
 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILE_WARNING_FLAGS} ${COMPILE_OPTIMIZATION_FLAGS} ${DEFINE_FLAGS} ${COMPILE_PROFILING_FLAGS} ")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMPILE_WARNING_FLAGS} ${COMPILE_OPTIMIZATION_FLAGS} ${DEFINE_FLAGS} ${COMPILE_PROFILING_FLAGS} ")
 
 SET(CMAKE_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM} -j2")