Cray.cmake 544 B

1234567891011121314151617
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. # This module is shared by multiple languages; use include blocker.
  4. if(__COMPILER_CRAY)
  5. return()
  6. endif()
  7. set(__COMPILER_CRAY 1)
  8. include(Compiler/CMakeCommonCompilerMacros)
  9. macro(__compiler_cray lang)
  10. set(CMAKE_${lang}_VERBOSE_FLAG "-v")
  11. set(CMAKE_${lang}_COMPILE_OPTIONS_PIC -h PIC)
  12. set(CMAKE_${lang}_COMPILE_OPTIONS_PIE -h PIC)
  13. set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "-h PIC")
  14. endmacro()