summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-05-13 13:42:52 (GMT)
committerBrad King <brad.king@kitware.com>2003-05-13 13:42:52 (GMT)
commit10c9e5b991cb2bec71c8a680375ffd8f207febff (patch)
tree9c93436c80676f112d8c2fc54f16a85e467b11ae /Source
parent0c641ebc327d5db55744c6ba74402f17769df609 (diff)
downloadCMake-10c9e5b991cb2bec71c8a680375ffd8f207febff.zip
CMake-10c9e5b991cb2bec71c8a680375ffd8f207febff.tar.gz
CMake-10c9e5b991cb2bec71c8a680375ffd8f207febff.tar.bz2
ERR: Test for ansi streams may need to use iosfwd for test because some compilers provide an iostream header that is old streams.
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index 8b5befc..83ebe22 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -4,11 +4,15 @@ IF(NOT KWSYS_NAMESPACE)
ENDIF(NOT KWSYS_NAMESPACE)
PROJECT(${KWSYS_NAMESPACE})
-INCLUDE(${CMAKE_ROOT}/Modules/TestForANSIStreamHeaders.cmake)
INCLUDE(${CMAKE_ROOT}/Modules/CheckIncludeFileCXX.cmake)
INCLUDE(${CMAKE_ROOT}/Modules/TestForSTDNamespace.cmake)
INCLUDE(${CMAKE_ROOT}/Modules/TestForANSIForScope.cmake)
CHECK_INCLUDE_FILE_CXX("sstream" CMAKE_HAS_ANSI_STRING_STREAM)
+CHECK_INCLUDE_FILE_CXX("iosfwd" CMAKE_ANSI_IOSFWD_HEADER)
+
+IF(NOT CMAKE_ANSI_IOSFWD_HEADER)
+ SET(CMAKE_NO_ANSI_STREAM_HEADERS 1)
+ENDIF(NOT CMAKE_ANSI_IOSFWD_HEADER)
IF(NOT CMAKE_HAS_ANSI_STRING_STREAM)
SET(CMAKE_NO_ANSI_STRING_STREAM 1)