From 10c9e5b991cb2bec71c8a680375ffd8f207febff Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 13 May 2003 09:42:52 -0400 Subject: [PATCH] ERR: Test for ansi streams may need to use iosfwd for test because some compilers provide an iostream header that is old streams. --- Source/kwsys/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index 8b5befc5f..83ebe227d 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)