summaryrefslogtreecommitdiffstats
path: root/Modules/TestForANSIStreamHeaders.cmake
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-09-12 15:14:50 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-09-12 15:14:50 (GMT)
commit32b398e55b4d898f5e50fe113255a16ba1e2d61d (patch)
treed2b46a09f4b86429894aad06ef6ff98055be3aed /Modules/TestForANSIStreamHeaders.cmake
parentcf272c76ad4dcde5ed36f1e48171bce3608e02aa (diff)
downloadCMake-32b398e55b4d898f5e50fe113255a16ba1e2d61d.zip
CMake-32b398e55b4d898f5e50fe113255a16ba1e2d61d.tar.gz
CMake-32b398e55b4d898f5e50fe113255a16ba1e2d61d.tar.bz2
new try compile module
Diffstat (limited to 'Modules/TestForANSIStreamHeaders.cmake')
-rw-r--r--Modules/TestForANSIStreamHeaders.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/Modules/TestForANSIStreamHeaders.cmake b/Modules/TestForANSIStreamHeaders.cmake
new file mode 100644
index 0000000..4e6542b
--- /dev/null
+++ b/Modules/TestForANSIStreamHeaders.cmake
@@ -0,0 +1,20 @@
+#
+# 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})
+TRY_COMPILE(CMAKE_ANSI_STREAM_HEADERS ${CMAKE_ROOT}/MOdules/TestForANSIStreamHeaders.cxx ${PROJECT_BINARY_DIR})
+IF (CMAKE_ANSI_STREAM_HEADERS)
+ SET (CMAKE_NO_ANSI_STREAM_HEADERS 0 CACHE INTERNAL
+ "Does the compiler support headers like iostream.")
+ MESSAGE("We have ANSI HEADER support")
+ELSE (CMAKE_ANSI_STREAM_HEADERS)
+ SET (CMAKE_NO_ANSI_STREAM_HEADERS 1 CACHE INTERNAL
+ "Does the compiler support headers like iostream.")
+ MESSAGE("We do not have ANSI HEADER support")
+ENDIF (CMAKE_ANSI_STREAM_HEADERS)
+
+