ENH: add ansi flag for c compiler

This commit is contained in:
Bill Hoffman 2001-11-07 13:46:09 -05:00
parent 0314c5f76a
commit 59e0fa6942
1 changed files with 5 additions and 0 deletions

View File

@ -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)