TestForANSIForScope.cmake 515 B

12345678910111213141516171819
  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_ANSI_FOR_SCOPE ${PROJECT_BINARY_DIR}
  7. ${CMAKE_ROOT}/Modules/TestForAnsiForScope.cxx)
  8. IF (CMAKE_ANSI_FOR_SCOPE)
  9. SET (CMAKE_NO_ANSI_FOR_SCOPE 0 CACHE INTERNAL
  10. "Does the compiler support ansi for scope.")
  11. ELSE (CMAKE_ANSI_FOR_SCOPE)
  12. SET (CMAKE_NO_ANSI_FOR_SCOPE 1 CACHE INTERNAL
  13. "Does the compiler support ansi for scope.")
  14. ENDIF (CMAKE_ANSI_FOR_SCOPE)