TestForSTDNamespace.cmake 490 B

123456789101112131415161718
  1. #
  2. # check if the compiler supports std:: on stl classes
  3. #
  4. # CMAKE_NO_STD_NAMESPACE - defined accoreding to the results
  5. #
  6. TRY_COMPILE(CMAKE_STD_NAMESPACE ${PROJECT_BINARY_DIR}
  7. ${CMAKE_ROOT}/Modules/TestForSTDNamespace.cxx)
  8. IF (CMAKE_STD_NAMESPACE)
  9. SET (CMAKE_NO_STD_NAMESPACE 0 CACHE INTERNAL
  10. "Does the compiler support std::.")
  11. ELSE (CMAKE_STD_NAMESPACE)
  12. SET (CMAKE_NO_STD_NAMESPACE 1 CACHE INTERNAL
  13. "Does the compiler support std::.")
  14. ENDIF (CMAKE_STD_NAMESPACE)