have to cache ansi_cxxflags

This commit is contained in:
Bill Hoffman 2002-11-21 13:28:03 -05:00
parent 369d5f631c
commit c54a86edd6
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ IF(NOT CMAKE_COMPILER_IS_GNUCXX)
# if the compiler liked the flag then set CMAKE_ANSI_CXXFLAGS
# to the flag
IF(CMAKE_CXX_ACCEPTS_FLAGS)
SET(CMAKE_ANSI_CXXFLAGS ${CMAKE_TRY_ANSI_CXX_FLAGS})
SET(CMAKE_ANSI_CXXFLAGS ${CMAKE_TRY_ANSI_CXX_FLAGS} CACHE INTERNAL
"What flags are required by the c++ compiler to make it ansi." )
ENDIF(CMAKE_CXX_ACCEPTS_FLAGS)
ENDIF( CMAKE_TRY_ANSI_CXX_FLAGS MATCHES ".+")
ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)