summaryrefslogtreecommitdiffstats
path: root/Modules/TestForANSIStreamHeaders.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-11-21 19:11:53 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-11-21 19:11:53 (GMT)
commita7098d1433582bb5c8c14c7dcf90053528d8b590 (patch)
treeaa3a74210eb3a3a4c07bbbe403e24931d33d428e /Modules/TestForANSIStreamHeaders.cmake
parent02ef2fb568745d34ef3762f0f51178ffab2b0afa (diff)
downloadCMake-a7098d1433582bb5c8c14c7dcf90053528d8b590.zip
CMake-a7098d1433582bb5c8c14c7dcf90053528d8b590.tar.gz
CMake-a7098d1433582bb5c8c14c7dcf90053528d8b590.tar.bz2
move ansi cxx flags stuff out of try compile and into cmake files
Diffstat (limited to 'Modules/TestForANSIStreamHeaders.cmake')
-rw-r--r--Modules/TestForANSIStreamHeaders.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/TestForANSIStreamHeaders.cmake b/Modules/TestForANSIStreamHeaders.cmake
index 7ea1071..74fe831 100644
--- a/Modules/TestForANSIStreamHeaders.cmake
+++ b/Modules/TestForANSIStreamHeaders.cmake
@@ -7,7 +7,8 @@
IF(NOT CMAKE_NO_ANSI_STREAM_HEADERS)
MESSAGE(STATUS "Check for ANSI stream headers")
TRY_COMPILE(CMAKE_ANSI_STREAM_HEADERS ${PROJECT_BINARY_DIR}
- ${CMAKE_ROOT}/Modules/TestForANSIStreamHeaders.cxx)
+ ${CMAKE_ROOT}/Modules/TestForANSIStreamHeaders.cxx
+ CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${CMAKE_ANSI_CXXFLAGS})
IF (CMAKE_ANSI_STREAM_HEADERS)
MESSAGE(STATUS "Check for ANSI stream headers - found")
SET (CMAKE_NO_ANSI_STREAM_HEADERS 0 CACHE INTERNAL