summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeBackwardCompatibilityCXX.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/CMakeBackwardCompatibilityCXX.cmake')
-rw-r--r--Modules/CMakeBackwardCompatibilityCXX.cmake7
1 files changed, 2 insertions, 5 deletions
diff --git a/Modules/CMakeBackwardCompatibilityCXX.cmake b/Modules/CMakeBackwardCompatibilityCXX.cmake
index c6eead1..29dabc6 100644
--- a/Modules/CMakeBackwardCompatibilityCXX.cmake
+++ b/Modules/CMakeBackwardCompatibilityCXX.cmake
@@ -34,10 +34,7 @@ IF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
INCLUDE(CheckIncludeFileCXX)
INCLUDE(TestForSTDNamespace)
INCLUDE(TestForANSIForScope)
- CHECK_INCLUDE_FILE_CXX("sstream" CMAKE_HAS_ANSI_STRING_STREAM)
+ INCLUDE(TestForSSTREAM)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_SAVE}")
- IF(NOT CMAKE_HAS_ANSI_STRING_STREAM)
- SET( CMAKE_NO_ANSI_STRING_STREAM 1 CACHE INTERNAL
- "Does the compiler support sstream or stringstream.")
- ENDIF(NOT CMAKE_HAS_ANSI_STRING_STREAM)
ENDIF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
+