diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-21 18:28:03 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-21 18:28:03 (GMT) |
commit | c54a86edd6a0b3f9b3c4f4d90830c489262126c4 (patch) | |
tree | 1b88c90e859a97cb3533f7ed88b63d661c44b470 /Modules/CMakeBackwardCompatibilityCXX.cmake | |
parent | 369d5f631ca2fd504d5c1a43418876b987b7e038 (diff) | |
download | CMake-c54a86edd6a0b3f9b3c4f4d90830c489262126c4.zip CMake-c54a86edd6a0b3f9b3c4f4d90830c489262126c4.tar.gz CMake-c54a86edd6a0b3f9b3c4f4d90830c489262126c4.tar.bz2 |
have to cache ansi_cxxflags
Diffstat (limited to 'Modules/CMakeBackwardCompatibilityCXX.cmake')
-rw-r--r-- | Modules/CMakeBackwardCompatibilityCXX.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/CMakeBackwardCompatibilityCXX.cmake b/Modules/CMakeBackwardCompatibilityCXX.cmake index 0cbe148..fb41caa 100644 --- a/Modules/CMakeBackwardCompatibilityCXX.cmake +++ b/Modules/CMakeBackwardCompatibilityCXX.cmake @@ -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) |