summaryrefslogtreecommitdiffstats
path: root/Modules/CheckIncludeFileCXX.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/CheckIncludeFileCXX.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/CheckIncludeFileCXX.cmake')
-rw-r--r--Modules/CheckIncludeFileCXX.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CheckIncludeFileCXX.cmake b/Modules/CheckIncludeFileCXX.cmake
index 7295f66..f8ce130 100644
--- a/Modules/CheckIncludeFileCXX.cmake
+++ b/Modules/CheckIncludeFileCXX.cmake
@@ -13,6 +13,7 @@ MACRO(CHECK_INCLUDE_FILE_CXX INCLUDE VARIABLE)
TRY_COMPILE(${VARIABLE}
${PROJECT_BINARY_DIR}
${PROJECT_BINARY_DIR}/CMakeTmp/CheckIncludeFile.cxx
+ CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${CMAKE_ANSI_CXXFLAGS}
OUTPUT_VARIABLE OUTPUT)
IF(${VARIABLE})
SET(${VARIABLE} 1 CACHE INTERNAL "Have include ${INCLUDE}")