SCO.cmake 695 B

123456789101112131415161718192021
  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_SCO)
  5. return()
  6. endif()
  7. set(__COMPILER_SCO 1)
  8. macro(__compiler_sco lang)
  9. # Feature flags.
  10. set(CMAKE_${lang}_COMPILE_OPTIONS_PIC -Kpic)
  11. set(CMAKE_${lang}_COMPILE_OPTIONS_PIE -Kpie)
  12. set(CMAKE_${lang}_COMPILE_OPTIONS_DLL -belf)
  13. set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "-Kpic -belf")
  14. set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-belf -Wl,-Bexport")
  15. set(CMAKE_${lang}_LINKER_WRAPPER_FLAG "-Wl,")
  16. set(CMAKE_${lang}_LINKER_WRAPPER_FLAG_SEP ",")
  17. endmacro()