CMake/Modules/TestForANSIStreamHeaders.cmake

21 lines
692 B
CMake
Raw Normal View History

2002-09-12 19:14:50 +04:00
#
# check if we they have the standard ansi stream files (without the .h)
#
# CMAKE_NO_ANSI_STREAM_HEADERS - defined accoreding to the results
#
MESSAGE(${CMAKE_MAKE_PROGRAM})
MESSAGE(${PROJECT_BINARY_DIR})
2002-09-13 00:36:56 +04:00
TRY_COMPILE(CMAKE_ANSI_STREAM_HEADERS ${CMAKE_ROOT}/Modules/TestForANSIStreamHeaders.cxx ${PROJECT_BINARY_DIR})
2002-09-12 19:14:50 +04:00
IF (CMAKE_ANSI_STREAM_HEADERS)
SET (CMAKE_NO_ANSI_STREAM_HEADERS 0 CACHE INTERNAL
"Does the compiler support headers like iostream.")
ELSE (CMAKE_ANSI_STREAM_HEADERS)
SET (CMAKE_NO_ANSI_STREAM_HEADERS 1 CACHE INTERNAL
"Does the compiler support headers like iostream.")
ENDIF (CMAKE_ANSI_STREAM_HEADERS)
2002-09-13 00:36:56 +04:00
MARK_AS_ADVANCED(CMAKE_NO_ANSI_STREAM_HEADERS)
2002-09-12 19:14:50 +04:00