Cray-CXX.cmake 1.0 KB

1234567891011121314151617181920212223242526
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. include(Compiler/Cray)
  4. __compiler_cray(CXX)
  5. string(APPEND CMAKE_CXX_FLAGS_MINSIZEREL_INIT " -DNDEBUG")
  6. string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " -DNDEBUG")
  7. if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 8.1)
  8. set(CMAKE_CXX98_STANDARD_COMPILE_OPTION -h conform)
  9. set(CMAKE_CXX98_EXTENSION_COMPILE_OPTION -h gnu)
  10. set(CMAKE_CXX98_STANDARD__HAS_FULL_SUPPORT ON)
  11. if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.4)
  12. set(CMAKE_CXX11_STANDARD_COMPILE_OPTION -h std=c++11)
  13. set(CMAKE_CXX11_EXTENSION_COMPILE_OPTION -h std=c++11,gnu)
  14. set(CMAKE_CXX11_STANDARD__HAS_FULL_SUPPORT ON)
  15. endif()
  16. if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.6)
  17. set(CMAKE_CXX14_STANDARD_COMPILE_OPTION -h std=c++14)
  18. set(CMAKE_CXX14_EXTENSION_COMPILE_OPTION -h std=c++14,gnu)
  19. set(CMAKE_CXX14_STANDARD__HAS_FULL_SUPPORT ON)
  20. endif ()
  21. endif ()
  22. __compiler_check_default_language_standard(CXX 8.1 98)