diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-07 18:46:09 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-07 18:46:09 (GMT) |
commit | 59e0fa6942d302364ddcbbf4a22ac0e9843ffbaa (patch) | |
tree | 69d3f649122d72eacf68a4b8e5e3400e2089eb0a /CMakeLists.txt | |
parent | 0314c5f76aec4a17fe7ddf6a7485d001b71935c8 (diff) | |
download | CMake-59e0fa6942d302364ddcbbf4a22ac0e9843ffbaa.zip CMake-59e0fa6942d302364ddcbbf4a22ac0e9843ffbaa.tar.gz CMake-59e0fa6942d302364ddcbbf4a22ac0e9843ffbaa.tar.bz2 |
ENH: add ansi flag for c compiler
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ff79e3..38ad602 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,11 @@ ENDIF(CMAKE_CONFIGURE_INSTALL_PREFIX) IF (CMAKE_ANSI_CXXFLAGS) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_ANSI_CXXFLAGS}") ENDIF (CMAKE_ANSI_CXXFLAGS) + +IF (CMAKE_ANSI_CFLAGS) + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}") +ENDIF (CMAKE_ANSI_CFLAGS) + # add some testing dependencies IF(BUILD_TESTING) IF (DART_ROOT) |