1# Distributed under the OSI-approved BSD 3-Clause License. See accompanying 2# file Copyright.txt or https://cmake.org/licensing for details. 3 4 5# This module is shared by multiple languages; use include blocker. 6include_guard() 7 8macro(__apple_compiler_intel lang) 9 set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output 10 set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") 11 set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") 12 13 set(CMAKE_${lang}_LINKER_WRAPPER_FLAG "-Wl,") 14 set(CMAKE_${lang}_LINKER_WRAPPER_FLAG_SEP ",") 15 16 if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 12.0) 17 set(CMAKE_${lang}_COMPILE_OPTIONS_VISIBILITY "-fvisibility=") 18 endif() 19endmacro() 20