1 # - Test for compiler support of ANSI stream headers iostream, etc.
2 # check if we they have the standard ansi stream files (without the .h)
3 # CMAKE_NO_ANSI_STREAM_HEADERS - defined by the results
5 INCLUDE(CheckIncludeFileCXX)
7 IF(NOT CMAKE_NO_ANSI_STREAM_HEADERS)
8 CHECK_INCLUDE_FILE_CXX(iostream CMAKE_ANSI_STREAM_HEADERS)
9 IF (CMAKE_ANSI_STREAM_HEADERS)
10 SET (CMAKE_NO_ANSI_STREAM_HEADERS 0 CACHE INTERNAL
11 "Does the compiler support headers like iostream.")
12 ELSE (CMAKE_ANSI_STREAM_HEADERS)
13 SET (CMAKE_NO_ANSI_STREAM_HEADERS 1 CACHE INTERNAL
14 "Does the compiler support headers like iostream.")
15 ENDIF (CMAKE_ANSI_STREAM_HEADERS)
17 MARK_AS_ADVANCED(CMAKE_NO_ANSI_STREAM_HEADERS)
18 ENDIF(NOT CMAKE_NO_ANSI_STREAM_HEADERS)