Apple-Intel.cmake 785 B

12345678910111213141516171819
  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. include_guard()
  5. macro(__apple_compiler_intel lang)
  6. set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output
  7. set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names")
  8. set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names")
  9. set(CMAKE_${lang}_LINKER_WRAPPER_FLAG "-Wl,")
  10. set(CMAKE_${lang}_LINKER_WRAPPER_FLAG_SEP ",")
  11. if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 12.0)
  12. set(CMAKE_${lang}_COMPILE_OPTIONS_VISIBILITY "-fvisibility=")
  13. endif()
  14. endmacro()