ERR: Test for ansi streams may need to use iosfwd for test because some compilers provide an iostream header that is old streams.
This commit is contained in:
parent
0c641ebc32
commit
10c9e5b991
|
@ -4,11 +4,15 @@ IF(NOT KWSYS_NAMESPACE)
|
||||||
ENDIF(NOT KWSYS_NAMESPACE)
|
ENDIF(NOT KWSYS_NAMESPACE)
|
||||||
|
|
||||||
PROJECT(${KWSYS_NAMESPACE})
|
PROJECT(${KWSYS_NAMESPACE})
|
||||||
INCLUDE(${CMAKE_ROOT}/Modules/TestForANSIStreamHeaders.cmake)
|
|
||||||
INCLUDE(${CMAKE_ROOT}/Modules/CheckIncludeFileCXX.cmake)
|
INCLUDE(${CMAKE_ROOT}/Modules/CheckIncludeFileCXX.cmake)
|
||||||
INCLUDE(${CMAKE_ROOT}/Modules/TestForSTDNamespace.cmake)
|
INCLUDE(${CMAKE_ROOT}/Modules/TestForSTDNamespace.cmake)
|
||||||
INCLUDE(${CMAKE_ROOT}/Modules/TestForANSIForScope.cmake)
|
INCLUDE(${CMAKE_ROOT}/Modules/TestForANSIForScope.cmake)
|
||||||
CHECK_INCLUDE_FILE_CXX("sstream" CMAKE_HAS_ANSI_STRING_STREAM)
|
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)
|
IF(NOT CMAKE_HAS_ANSI_STRING_STREAM)
|
||||||
SET(CMAKE_NO_ANSI_STRING_STREAM 1)
|
SET(CMAKE_NO_ANSI_STRING_STREAM 1)
|
||||||
|
|
Loading…
Reference in New Issue