2 # check if we they have the standard ansi stream files (without the .h)
4 # CMAKE_NO_ANSI_STREAM_HEADERS - defined accoreding to the results
6 INCLUDE(CheckIncludeFileCXX)
8 IF(NOT CMAKE_NO_ANSI_STREAM_HEADERS)
9 CHECK_INCLUDE_FILE_CXX(iostream CMAKE_ANSI_STREAM_HEADERS)
10 IF (CMAKE_ANSI_STREAM_HEADERS)
11 SET (CMAKE_NO_ANSI_STREAM_HEADERS 0 CACHE INTERNAL
12 "Does the compiler support headers like iostream.")
13 ELSE (CMAKE_ANSI_STREAM_HEADERS)
14 SET (CMAKE_NO_ANSI_STREAM_HEADERS 1 CACHE INTERNAL
15 "Does the compiler support headers like iostream.")
16 ENDIF (CMAKE_ANSI_STREAM_HEADERS)
18 MARK_AS_ADVANCED(CMAKE_NO_ANSI_STREAM_HEADERS)
19 ENDIF(NOT CMAKE_NO_ANSI_STREAM_HEADERS)