TestForANSIStreamHeaders.cmake 630 B

123456789101112131415161718
  1. #
  2. # check if we they have the standard ansi stream files (without the .h)
  3. #
  4. # CMAKE_NO_ANSI_STREAM_HEADERS - defined accoreding to the results
  5. #
  6. TRY_COMPILE(CMAKE_ANSI_STREAM_HEADERS ${CMAKE_ROOT}/Modules/TestForANSIStreamHeaders.cxx ${PROJECT_BINARY_DIR})
  7. IF (CMAKE_ANSI_STREAM_HEADERS)
  8. SET (CMAKE_NO_ANSI_STREAM_HEADERS 0 CACHE INTERNAL
  9. "Does the compiler support headers like iostream.")
  10. ELSE (CMAKE_ANSI_STREAM_HEADERS)
  11. SET (CMAKE_NO_ANSI_STREAM_HEADERS 1 CACHE INTERNAL
  12. "Does the compiler support headers like iostream.")
  13. ENDIF (CMAKE_ANSI_STREAM_HEADERS)
  14. MARK_AS_ADVANCED(CMAKE_NO_ANSI_STREAM_HEADERS)