From e95b3fd9bbca94cb5f217847031c9c8f393aee78 Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Sun, 1 Apr 2018 22:49:59 +0200 Subject: Apple: Use CMAKE_EFFECTIVE_SYSTEM_NAME to share compiler info Apple platforms macOS, iOS, tvOS, and watchOS can all share the same compiler information. Rename `Darwin-*` modules to `Apple-*` and load them all through `CMAKE_EFFECTIVE_SYSTEM_NAME`. This saves duplication of 4 * 21 compiler information modules. Issue: #17870 --- Modules/CMakeSystemSpecificInitialize.cmake | 5 +++ Modules/Platform/Apple-Absoft-Fortran.cmake | 7 ++++ Modules/Platform/Apple-AppleClang-C.cmake | 6 +++ Modules/Platform/Apple-AppleClang-CXX.cmake | 6 +++ Modules/Platform/Apple-Clang-C.cmake | 2 + Modules/Platform/Apple-Clang-CXX.cmake | 2 + Modules/Platform/Apple-Clang.cmake | 35 ++++++++++++++++ Modules/Platform/Apple-GNU-C.cmake | 4 ++ Modules/Platform/Apple-GNU-CXX.cmake | 4 ++ Modules/Platform/Apple-GNU-Fortran.cmake | 10 +++++ Modules/Platform/Apple-GNU.cmake | 60 ++++++++++++++++++++++++++++ Modules/Platform/Apple-Intel-C.cmake | 2 + Modules/Platform/Apple-Intel-CXX.cmake | 2 + Modules/Platform/Apple-Intel-Fortran.cmake | 8 ++++ Modules/Platform/Apple-Intel.cmake | 19 +++++++++ Modules/Platform/Apple-NAG-Fortran.cmake | 15 +++++++ Modules/Platform/Apple-NVIDIA-CUDA.cmake | 19 +++++++++ Modules/Platform/Apple-PGI-C.cmake | 2 + Modules/Platform/Apple-PGI-CXX.cmake | 2 + Modules/Platform/Apple-PGI-Fortran.cmake | 2 + Modules/Platform/Apple-PGI.cmake | 14 +++++++ Modules/Platform/Apple-VisualAge-C.cmake | 1 + Modules/Platform/Apple-VisualAge-CXX.cmake | 1 + Modules/Platform/Apple-XL-C.cmake | 8 ++++ Modules/Platform/Apple-XL-CXX.cmake | 8 ++++ Modules/Platform/Darwin-Absoft-Fortran.cmake | 7 ---- Modules/Platform/Darwin-AppleClang-C.cmake | 6 --- Modules/Platform/Darwin-AppleClang-CXX.cmake | 6 --- Modules/Platform/Darwin-Clang-C.cmake | 2 - Modules/Platform/Darwin-Clang-CXX.cmake | 2 - Modules/Platform/Darwin-Clang.cmake | 35 ---------------- Modules/Platform/Darwin-GNU-C.cmake | 4 -- Modules/Platform/Darwin-GNU-CXX.cmake | 4 -- Modules/Platform/Darwin-GNU-Fortran.cmake | 10 ----- Modules/Platform/Darwin-GNU.cmake | 60 ---------------------------- Modules/Platform/Darwin-Initialize.cmake | 4 ++ Modules/Platform/Darwin-Intel-C.cmake | 2 - Modules/Platform/Darwin-Intel-CXX.cmake | 2 - Modules/Platform/Darwin-Intel-Fortran.cmake | 8 ---- Modules/Platform/Darwin-Intel.cmake | 19 --------- Modules/Platform/Darwin-NAG-Fortran.cmake | 15 ------- Modules/Platform/Darwin-NVIDIA-CUDA.cmake | 19 --------- Modules/Platform/Darwin-PGI-C.cmake | 2 - Modules/Platform/Darwin-PGI-CXX.cmake | 2 - Modules/Platform/Darwin-PGI-Fortran.cmake | 2 - Modules/Platform/Darwin-PGI.cmake | 14 ------- Modules/Platform/Darwin-VisualAge-C.cmake | 1 - Modules/Platform/Darwin-VisualAge-CXX.cmake | 1 - Modules/Platform/Darwin-XL-C.cmake | 8 ---- Modules/Platform/Darwin-XL-CXX.cmake | 8 ---- 50 files changed, 248 insertions(+), 239 deletions(-) create mode 100644 Modules/Platform/Apple-Absoft-Fortran.cmake create mode 100644 Modules/Platform/Apple-AppleClang-C.cmake create mode 100644 Modules/Platform/Apple-AppleClang-CXX.cmake create mode 100644 Modules/Platform/Apple-Clang-C.cmake create mode 100644 Modules/Platform/Apple-Clang-CXX.cmake create mode 100644 Modules/Platform/Apple-Clang.cmake create mode 100644 Modules/Platform/Apple-GNU-C.cmake create mode 100644 Modules/Platform/Apple-GNU-CXX.cmake create mode 100644 Modules/Platform/Apple-GNU-Fortran.cmake create mode 100644 Modules/Platform/Apple-GNU.cmake create mode 100644 Modules/Platform/Apple-Intel-C.cmake create mode 100644 Modules/Platform/Apple-Intel-CXX.cmake create mode 100644 Modules/Platform/Apple-Intel-Fortran.cmake create mode 100644 Modules/Platform/Apple-Intel.cmake create mode 100644 Modules/Platform/Apple-NAG-Fortran.cmake create mode 100644 Modules/Platform/Apple-NVIDIA-CUDA.cmake create mode 100644 Modules/Platform/Apple-PGI-C.cmake create mode 100644 Modules/Platform/Apple-PGI-CXX.cmake create mode 100644 Modules/Platform/Apple-PGI-Fortran.cmake create mode 100644 Modules/Platform/Apple-PGI.cmake create mode 100644 Modules/Platform/Apple-VisualAge-C.cmake create mode 100644 Modules/Platform/Apple-VisualAge-CXX.cmake create mode 100644 Modules/Platform/Apple-XL-C.cmake create mode 100644 Modules/Platform/Apple-XL-CXX.cmake delete mode 100644 Modules/Platform/Darwin-Absoft-Fortran.cmake delete mode 100644 Modules/Platform/Darwin-AppleClang-C.cmake delete mode 100644 Modules/Platform/Darwin-AppleClang-CXX.cmake delete mode 100644 Modules/Platform/Darwin-Clang-C.cmake delete mode 100644 Modules/Platform/Darwin-Clang-CXX.cmake delete mode 100644 Modules/Platform/Darwin-Clang.cmake delete mode 100644 Modules/Platform/Darwin-GNU-C.cmake delete mode 100644 Modules/Platform/Darwin-GNU-CXX.cmake delete mode 100644 Modules/Platform/Darwin-GNU-Fortran.cmake delete mode 100644 Modules/Platform/Darwin-GNU.cmake delete mode 100644 Modules/Platform/Darwin-Intel-C.cmake delete mode 100644 Modules/Platform/Darwin-Intel-CXX.cmake delete mode 100644 Modules/Platform/Darwin-Intel-Fortran.cmake delete mode 100644 Modules/Platform/Darwin-Intel.cmake delete mode 100644 Modules/Platform/Darwin-NAG-Fortran.cmake delete mode 100644 Modules/Platform/Darwin-NVIDIA-CUDA.cmake delete mode 100644 Modules/Platform/Darwin-PGI-C.cmake delete mode 100644 Modules/Platform/Darwin-PGI-CXX.cmake delete mode 100644 Modules/Platform/Darwin-PGI-Fortran.cmake delete mode 100644 Modules/Platform/Darwin-PGI.cmake delete mode 100644 Modules/Platform/Darwin-VisualAge-C.cmake delete mode 100644 Modules/Platform/Darwin-VisualAge-CXX.cmake delete mode 100644 Modules/Platform/Darwin-XL-C.cmake delete mode 100644 Modules/Platform/Darwin-XL-CXX.cmake diff --git a/Modules/CMakeSystemSpecificInitialize.cmake b/Modules/CMakeSystemSpecificInitialize.cmake index 629f226..de4d7f5 100644 --- a/Modules/CMakeSystemSpecificInitialize.cmake +++ b/Modules/CMakeSystemSpecificInitialize.cmake @@ -11,6 +11,11 @@ # # It is useful to share the same aforementioned configuration files and # avoids duplicating them in case of tightly related platforms. +# +# An example are the platforms supported by Xcode (macOS, iOS, tvOS, +# and watchOS). For all of those the CMAKE_EFFECTIVE_SYSTEM_NAME is +# set to Apple which results in using +# Platfom/Apple-AppleClang-CXX.cmake for the Apple C++ compiler. set(CMAKE_EFFECTIVE_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}") include(Platform/${CMAKE_SYSTEM_NAME}-Initialize OPTIONAL) diff --git a/Modules/Platform/Apple-Absoft-Fortran.cmake b/Modules/Platform/Apple-Absoft-Fortran.cmake new file mode 100644 index 0000000..8caa202 --- /dev/null +++ b/Modules/Platform/Apple-Absoft-Fortran.cmake @@ -0,0 +1,7 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +set(CMAKE_Fortran_VERBOSE_FLAG "-X -v") # Runs gcc under the hood. + +set(CMAKE_Fortran_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ") +set(CMAKE_Fortran_OSX_CURRENT_VERSION_FLAG "-current_version ") diff --git a/Modules/Platform/Apple-AppleClang-C.cmake b/Modules/Platform/Apple-AppleClang-C.cmake new file mode 100644 index 0000000..f45ccf4 --- /dev/null +++ b/Modules/Platform/Apple-AppleClang-C.cmake @@ -0,0 +1,6 @@ +include(Platform/Apple-Clang-C) +if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.2) + set(CMAKE_C_SYSTEM_FRAMEWORK_SEARCH_FLAG "-iframework ") +else() + unset(CMAKE_C_SYSTEM_FRAMEWORK_SEARCH_FLAG) +endif() diff --git a/Modules/Platform/Apple-AppleClang-CXX.cmake b/Modules/Platform/Apple-AppleClang-CXX.cmake new file mode 100644 index 0000000..1128204 --- /dev/null +++ b/Modules/Platform/Apple-AppleClang-CXX.cmake @@ -0,0 +1,6 @@ +include(Platform/Apple-Clang-CXX) +if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.2) + set(CMAKE_CXX_SYSTEM_FRAMEWORK_SEARCH_FLAG "-iframework ") +else() + unset(CMAKE_CXX_SYSTEM_FRAMEWORK_SEARCH_FLAG) +endif() diff --git a/Modules/Platform/Apple-Clang-C.cmake b/Modules/Platform/Apple-Clang-C.cmake new file mode 100644 index 0000000..4d0dc82 --- /dev/null +++ b/Modules/Platform/Apple-Clang-C.cmake @@ -0,0 +1,2 @@ +include(Platform/Apple-Clang) +__apple_compiler_clang(C) diff --git a/Modules/Platform/Apple-Clang-CXX.cmake b/Modules/Platform/Apple-Clang-CXX.cmake new file mode 100644 index 0000000..6c1ddc1 --- /dev/null +++ b/Modules/Platform/Apple-Clang-CXX.cmake @@ -0,0 +1,2 @@ +include(Platform/Apple-Clang) +__apple_compiler_clang(CXX) diff --git a/Modules/Platform/Apple-Clang.cmake b/Modules/Platform/Apple-Clang.cmake new file mode 100644 index 0000000..70fc75e --- /dev/null +++ b/Modules/Platform/Apple-Clang.cmake @@ -0,0 +1,35 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + + +# This module is shared by multiple languages; use include blocker. +if(__APPLE_COMPILER_CLANG) + return() +endif() +set(__APPLE_COMPILER_CLANG 1) + +macro(__apple_compiler_clang lang) + set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output + set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") + set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") + set(CMAKE_${lang}_SYSROOT_FLAG "-isysroot") + set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mmacosx-version-min=") + if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 3.2) + set(CMAKE_${lang}_SYSTEM_FRAMEWORK_SEARCH_FLAG "-iframework ") + endif() + if(_CMAKE_OSX_SYSROOT_PATH MATCHES "/iPhoneOS") + set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-miphoneos-version-min=") + elseif(_CMAKE_OSX_SYSROOT_PATH MATCHES "/iPhoneSimulator") + set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mios-simulator-version-min=") + elseif(_CMAKE_OSX_SYSROOT_PATH MATCHES "/AppleTVOS") + set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mtvos-version-min=") + elseif(_CMAKE_OSX_SYSROOT_PATH MATCHES "/AppleTVSimulator") + set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mtvos-simulator-version-min=") + elseif(_CMAKE_OSX_SYSROOT_PATH MATCHES "/WatchOS") + set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mwatchos-version-min=") + elseif(_CMAKE_OSX_SYSROOT_PATH MATCHES "/WatchSimulator") + set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mwatchos-simulator-version-min=") + else() + set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mmacosx-version-min=") + endif() +endmacro() diff --git a/Modules/Platform/Apple-GNU-C.cmake b/Modules/Platform/Apple-GNU-C.cmake new file mode 100644 index 0000000..5481c99 --- /dev/null +++ b/Modules/Platform/Apple-GNU-C.cmake @@ -0,0 +1,4 @@ +include(Platform/Apple-GNU) +__apple_compiler_gnu(C) +cmake_gnu_set_sysroot_flag(C) +cmake_gnu_set_osx_deployment_target_flag(C) diff --git a/Modules/Platform/Apple-GNU-CXX.cmake b/Modules/Platform/Apple-GNU-CXX.cmake new file mode 100644 index 0000000..727f726 --- /dev/null +++ b/Modules/Platform/Apple-GNU-CXX.cmake @@ -0,0 +1,4 @@ +include(Platform/Apple-GNU) +__apple_compiler_gnu(CXX) +cmake_gnu_set_sysroot_flag(CXX) +cmake_gnu_set_osx_deployment_target_flag(CXX) diff --git a/Modules/Platform/Apple-GNU-Fortran.cmake b/Modules/Platform/Apple-GNU-Fortran.cmake new file mode 100644 index 0000000..2f53603 --- /dev/null +++ b/Modules/Platform/Apple-GNU-Fortran.cmake @@ -0,0 +1,10 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Apple-GNU) +__apple_compiler_gnu(Fortran) +cmake_gnu_set_sysroot_flag(Fortran) +cmake_gnu_set_osx_deployment_target_flag(Fortran) + +set(CMAKE_Fortran_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ") +set(CMAKE_Fortran_OSX_CURRENT_VERSION_FLAG "-current_version ") diff --git a/Modules/Platform/Apple-GNU.cmake b/Modules/Platform/Apple-GNU.cmake new file mode 100644 index 0000000..9985ddd --- /dev/null +++ b/Modules/Platform/Apple-GNU.cmake @@ -0,0 +1,60 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + + +# This module is shared by multiple languages; use include blocker. +if(__APPLE_COMPILER_GNU) + return() +endif() +set(__APPLE_COMPILER_GNU 1) + +macro(__apple_compiler_gnu lang) + set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output + # GNU does not have -shared on OS X + set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") + set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") + + if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 4.3) + set(CMAKE_${lang}_SYSTEM_FRAMEWORK_SEARCH_FLAG "-iframework ") + endif() +endmacro() + +macro(cmake_gnu_set_sysroot_flag lang) + if(NOT DEFINED CMAKE_${lang}_SYSROOT_FLAG) + set(_doc "${lang} compiler has -isysroot") + message(STATUS "Checking whether ${_doc}") + execute_process( + COMMAND ${CMAKE_${lang}_COMPILER} "-v" "--help" + OUTPUT_VARIABLE _gcc_help + ERROR_VARIABLE _gcc_help + ) + if("${_gcc_help}" MATCHES "isysroot") + message(STATUS "Checking whether ${_doc} - yes") + set(CMAKE_${lang}_SYSROOT_FLAG "-isysroot") + else() + message(STATUS "Checking whether ${_doc} - no") + set(CMAKE_${lang}_SYSROOT_FLAG "") + endif() + set(CMAKE_${lang}_SYSROOT_FLAG_CODE "set(CMAKE_${lang}_SYSROOT_FLAG \"${CMAKE_${lang}_SYSROOT_FLAG}\")") + endif() +endmacro() + +macro(cmake_gnu_set_osx_deployment_target_flag lang) + if(NOT DEFINED CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG) + set(_doc "${lang} compiler supports OSX deployment target flag") + message(STATUS "Checking whether ${_doc}") + execute_process( + COMMAND ${CMAKE_${lang}_COMPILER} "-v" "--help" + OUTPUT_VARIABLE _gcc_help + ERROR_VARIABLE _gcc_help + ) + if("${_gcc_help}" MATCHES "macosx-version-min") + message(STATUS "Checking whether ${_doc} - yes") + set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mmacosx-version-min=") + else() + message(STATUS "Checking whether ${_doc} - no") + set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "") + endif() + set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG_CODE "set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG \"${CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG}\")") + endif() +endmacro() diff --git a/Modules/Platform/Apple-Intel-C.cmake b/Modules/Platform/Apple-Intel-C.cmake new file mode 100644 index 0000000..95bb270 --- /dev/null +++ b/Modules/Platform/Apple-Intel-C.cmake @@ -0,0 +1,2 @@ +include(Platform/Apple-Intel) +__apple_compiler_intel(C) diff --git a/Modules/Platform/Apple-Intel-CXX.cmake b/Modules/Platform/Apple-Intel-CXX.cmake new file mode 100644 index 0000000..b87e512 --- /dev/null +++ b/Modules/Platform/Apple-Intel-CXX.cmake @@ -0,0 +1,2 @@ +include(Platform/Apple-Intel) +__apple_compiler_intel(CXX) diff --git a/Modules/Platform/Apple-Intel-Fortran.cmake b/Modules/Platform/Apple-Intel-Fortran.cmake new file mode 100644 index 0000000..e54e237 --- /dev/null +++ b/Modules/Platform/Apple-Intel-Fortran.cmake @@ -0,0 +1,8 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Apple-Intel) +__apple_compiler_intel(Fortran) + +set(CMAKE_Fortran_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ") +set(CMAKE_Fortran_OSX_CURRENT_VERSION_FLAG "-current_version ") diff --git a/Modules/Platform/Apple-Intel.cmake b/Modules/Platform/Apple-Intel.cmake new file mode 100644 index 0000000..9f92d95 --- /dev/null +++ b/Modules/Platform/Apple-Intel.cmake @@ -0,0 +1,19 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + + +# This module is shared by multiple languages; use include blocker. +if(__APPLE_COMPILER_INTEL) + return() +endif() +set(__APPLE_COMPILER_INTEL 1) + +macro(__apple_compiler_intel lang) + set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output + set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") + set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") + + if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 12.0) + set(CMAKE_${lang}_COMPILE_OPTIONS_VISIBILITY "-fvisibility=") + endif() +endmacro() diff --git a/Modules/Platform/Apple-NAG-Fortran.cmake b/Modules/Platform/Apple-NAG-Fortran.cmake new file mode 100644 index 0000000..8d3e741 --- /dev/null +++ b/Modules/Platform/Apple-NAG-Fortran.cmake @@ -0,0 +1,15 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +set(CMAKE_Fortran_VERBOSE_FLAG "-Wl,-v") # Runs gcc under the hood. + +# Need -fpp explicitly on case-insensitive filesystem. +set(CMAKE_Fortran_COMPILE_OBJECT + " -fpp -o -c ") + +set(CMAKE_Fortran_OSX_COMPATIBILITY_VERSION_FLAG "-Wl,-compatibility_version -Wl,") +set(CMAKE_Fortran_OSX_CURRENT_VERSION_FLAG "-Wl,-current_version -Wl,") +set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-Wl,-shared") +set(CMAKE_SHARED_LIBRARY_SONAME_Fortran_FLAG "-Wl,-install_name -Wl,") +set(CMAKE_Fortran_CREATE_SHARED_LIBRARY + " -o ") diff --git a/Modules/Platform/Apple-NVIDIA-CUDA.cmake b/Modules/Platform/Apple-NVIDIA-CUDA.cmake new file mode 100644 index 0000000..bec3948 --- /dev/null +++ b/Modules/Platform/Apple-NVIDIA-CUDA.cmake @@ -0,0 +1,19 @@ +include(Platform/Darwin) + +set(__IMPLICT_LINKS ) +foreach(dir ${CMAKE_CUDA_HOST_IMPLICIT_LINK_DIRECTORIES}) + string(APPEND __IMPLICT_LINKS " -L\"${dir}\"") +endforeach() +foreach(lib ${CMAKE_CUDA_HOST_IMPLICIT_LINK_LIBRARIES}) + if(${lib} MATCHES "/") + string(APPEND __IMPLICT_LINKS " \"${lib}\"") + else() + string(APPEND __IMPLICT_LINKS " -l${lib}") + endif() +endforeach() + +set(CMAKE_SHARED_LIBRARY_CREATE_CUDA_FLAGS "-shared -Wl,-headerpad_max_install_names") +set(CMAKE_SHARED_MODULE_CREATE_CUDA_FLAGS "-shared -Wl,-headerpad_max_install_names") + +set(CMAKE_CUDA_CREATE_SHARED_LIBRARY " -o ${__IMPLICT_LINKS}") +set(CMAKE_CUDA_CREATE_SHARED_MODULE " -o ${__IMPLICT_LINKS}") diff --git a/Modules/Platform/Apple-PGI-C.cmake b/Modules/Platform/Apple-PGI-C.cmake new file mode 100644 index 0000000..1e11724 --- /dev/null +++ b/Modules/Platform/Apple-PGI-C.cmake @@ -0,0 +1,2 @@ +include(Platform/Apple-PGI) +__apple_compiler_pgi(C) diff --git a/Modules/Platform/Apple-PGI-CXX.cmake b/Modules/Platform/Apple-PGI-CXX.cmake new file mode 100644 index 0000000..aa5daf7 --- /dev/null +++ b/Modules/Platform/Apple-PGI-CXX.cmake @@ -0,0 +1,2 @@ +include(Platform/Apple-PGI) +__apple_compiler_pgi(CXX) diff --git a/Modules/Platform/Apple-PGI-Fortran.cmake b/Modules/Platform/Apple-PGI-Fortran.cmake new file mode 100644 index 0000000..1e3e4b1 --- /dev/null +++ b/Modules/Platform/Apple-PGI-Fortran.cmake @@ -0,0 +1,2 @@ +include(Platform/Apple-PGI) +__apple_compiler_pgi(Fortran) diff --git a/Modules/Platform/Apple-PGI.cmake b/Modules/Platform/Apple-PGI.cmake new file mode 100644 index 0000000..a68c08d --- /dev/null +++ b/Modules/Platform/Apple-PGI.cmake @@ -0,0 +1,14 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +# This module is shared by multiple languages; use include blocker. +if(__APPLE_COMPILER_PGI) + return() +endif() +set(__APPLE_COMPILER_PGI 1) + +macro(__apple_compiler_pgi lang) + set(CMAKE_${lang}_OSX_COMPATIBILITY_VERSION_FLAG "-Wl,-compatibility_version,") + set(CMAKE_${lang}_OSX_CURRENT_VERSION_FLAG "-Wl,-current_version,") + set(CMAKE_SHARED_LIBRARY_SONAME_${lang}_FLAG "-Wl,-install_name") +endmacro() diff --git a/Modules/Platform/Apple-VisualAge-C.cmake b/Modules/Platform/Apple-VisualAge-C.cmake new file mode 100644 index 0000000..7fa6032 --- /dev/null +++ b/Modules/Platform/Apple-VisualAge-C.cmake @@ -0,0 +1 @@ +include(Platform/Apple-XL-C) diff --git a/Modules/Platform/Apple-VisualAge-CXX.cmake b/Modules/Platform/Apple-VisualAge-CXX.cmake new file mode 100644 index 0000000..12dd347 --- /dev/null +++ b/Modules/Platform/Apple-VisualAge-CXX.cmake @@ -0,0 +1 @@ +include(Platform/Apple-XL-CXX) diff --git a/Modules/Platform/Apple-XL-C.cmake b/Modules/Platform/Apple-XL-C.cmake new file mode 100644 index 0000000..2aeb132 --- /dev/null +++ b/Modules/Platform/Apple-XL-C.cmake @@ -0,0 +1,8 @@ +set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-qmkshrobj") +set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle") + +# Enable shared library versioning. +set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-install_name") + +# -qhalt=e = Halt on error messages (rather than just severe errors) +string(APPEND CMAKE_C_FLAGS_INIT " -qhalt=e") diff --git a/Modules/Platform/Apple-XL-CXX.cmake b/Modules/Platform/Apple-XL-CXX.cmake new file mode 100644 index 0000000..f8e1906 --- /dev/null +++ b/Modules/Platform/Apple-XL-CXX.cmake @@ -0,0 +1,8 @@ +set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-qmkshrobj") +set(CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS "-bundle") + +# Enable shared library versioning. +set(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-install_name") + +# -qhalt=e = Halt on error messages (rather than just severe errors) +string(APPEND CMAKE_C_FLAGS_INIT " -qhalt=e") diff --git a/Modules/Platform/Darwin-Absoft-Fortran.cmake b/Modules/Platform/Darwin-Absoft-Fortran.cmake deleted file mode 100644 index 8caa202..0000000 --- a/Modules/Platform/Darwin-Absoft-Fortran.cmake +++ /dev/null @@ -1,7 +0,0 @@ -# Distributed under the OSI-approved BSD 3-Clause License. See accompanying -# file Copyright.txt or https://cmake.org/licensing for details. - -set(CMAKE_Fortran_VERBOSE_FLAG "-X -v") # Runs gcc under the hood. - -set(CMAKE_Fortran_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ") -set(CMAKE_Fortran_OSX_CURRENT_VERSION_FLAG "-current_version ") diff --git a/Modules/Platform/Darwin-AppleClang-C.cmake b/Modules/Platform/Darwin-AppleClang-C.cmake deleted file mode 100644 index 3216b29..0000000 --- a/Modules/Platform/Darwin-AppleClang-C.cmake +++ /dev/null @@ -1,6 +0,0 @@ -include(Platform/Darwin-Clang-C) -if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.2) - set(CMAKE_C_SYSTEM_FRAMEWORK_SEARCH_FLAG "-iframework ") -else() - unset(CMAKE_C_SYSTEM_FRAMEWORK_SEARCH_FLAG) -endif() diff --git a/Modules/Platform/Darwin-AppleClang-CXX.cmake b/Modules/Platform/Darwin-AppleClang-CXX.cmake deleted file mode 100644 index 3fedf8c..0000000 --- a/Modules/Platform/Darwin-AppleClang-CXX.cmake +++ /dev/null @@ -1,6 +0,0 @@ -include(Platform/Darwin-Clang-CXX) -if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.2) - set(CMAKE_CXX_SYSTEM_FRAMEWORK_SEARCH_FLAG "-iframework ") -else() - unset(CMAKE_CXX_SYSTEM_FRAMEWORK_SEARCH_FLAG) -endif() diff --git a/Modules/Platform/Darwin-Clang-C.cmake b/Modules/Platform/Darwin-Clang-C.cmake deleted file mode 100644 index 0a1502e..0000000 --- a/Modules/Platform/Darwin-Clang-C.cmake +++ /dev/null @@ -1,2 +0,0 @@ -include(Platform/Darwin-Clang) -__darwin_compiler_clang(C) diff --git a/Modules/Platform/Darwin-Clang-CXX.cmake b/Modules/Platform/Darwin-Clang-CXX.cmake deleted file mode 100644 index f8e8d88..0000000 --- a/Modules/Platform/Darwin-Clang-CXX.cmake +++ /dev/null @@ -1,2 +0,0 @@ -include(Platform/Darwin-Clang) -__darwin_compiler_clang(CXX) diff --git a/Modules/Platform/Darwin-Clang.cmake b/Modules/Platform/Darwin-Clang.cmake deleted file mode 100644 index f8a07ec..0000000 --- a/Modules/Platform/Darwin-Clang.cmake +++ /dev/null @@ -1,35 +0,0 @@ -# Distributed under the OSI-approved BSD 3-Clause License. See accompanying -# file Copyright.txt or https://cmake.org/licensing for details. - - -# This module is shared by multiple languages; use include blocker. -if(__DARWIN_COMPILER_CLANG) - return() -endif() -set(__DARWIN_COMPILER_CLANG 1) - -macro(__darwin_compiler_clang lang) - set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output - set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") - set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") - set(CMAKE_${lang}_SYSROOT_FLAG "-isysroot") - set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mmacosx-version-min=") - if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 3.2) - set(CMAKE_${lang}_SYSTEM_FRAMEWORK_SEARCH_FLAG "-iframework ") - endif() - if(_CMAKE_OSX_SYSROOT_PATH MATCHES "/iPhoneOS") - set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-miphoneos-version-min=") - elseif(_CMAKE_OSX_SYSROOT_PATH MATCHES "/iPhoneSimulator") - set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mios-simulator-version-min=") - elseif(_CMAKE_OSX_SYSROOT_PATH MATCHES "/AppleTVOS") - set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mtvos-version-min=") - elseif(_CMAKE_OSX_SYSROOT_PATH MATCHES "/AppleTVSimulator") - set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mtvos-simulator-version-min=") - elseif(_CMAKE_OSX_SYSROOT_PATH MATCHES "/WatchOS") - set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mwatchos-version-min=") - elseif(_CMAKE_OSX_SYSROOT_PATH MATCHES "/WatchSimulator") - set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mwatchos-simulator-version-min=") - else() - set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mmacosx-version-min=") - endif() -endmacro() diff --git a/Modules/Platform/Darwin-GNU-C.cmake b/Modules/Platform/Darwin-GNU-C.cmake deleted file mode 100644 index efdfd00..0000000 --- a/Modules/Platform/Darwin-GNU-C.cmake +++ /dev/null @@ -1,4 +0,0 @@ -include(Platform/Darwin-GNU) -__darwin_compiler_gnu(C) -cmake_gnu_set_sysroot_flag(C) -cmake_gnu_set_osx_deployment_target_flag(C) diff --git a/Modules/Platform/Darwin-GNU-CXX.cmake b/Modules/Platform/Darwin-GNU-CXX.cmake deleted file mode 100644 index e3c2ea7..0000000 --- a/Modules/Platform/Darwin-GNU-CXX.cmake +++ /dev/null @@ -1,4 +0,0 @@ -include(Platform/Darwin-GNU) -__darwin_compiler_gnu(CXX) -cmake_gnu_set_sysroot_flag(CXX) -cmake_gnu_set_osx_deployment_target_flag(CXX) diff --git a/Modules/Platform/Darwin-GNU-Fortran.cmake b/Modules/Platform/Darwin-GNU-Fortran.cmake deleted file mode 100644 index 568d79b..0000000 --- a/Modules/Platform/Darwin-GNU-Fortran.cmake +++ /dev/null @@ -1,10 +0,0 @@ -# Distributed under the OSI-approved BSD 3-Clause License. See accompanying -# file Copyright.txt or https://cmake.org/licensing for details. - -include(Platform/Darwin-GNU) -__darwin_compiler_gnu(Fortran) -cmake_gnu_set_sysroot_flag(Fortran) -cmake_gnu_set_osx_deployment_target_flag(Fortran) - -set(CMAKE_Fortran_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ") -set(CMAKE_Fortran_OSX_CURRENT_VERSION_FLAG "-current_version ") diff --git a/Modules/Platform/Darwin-GNU.cmake b/Modules/Platform/Darwin-GNU.cmake deleted file mode 100644 index 9f9ef01..0000000 --- a/Modules/Platform/Darwin-GNU.cmake +++ /dev/null @@ -1,60 +0,0 @@ -# Distributed under the OSI-approved BSD 3-Clause License. See accompanying -# file Copyright.txt or https://cmake.org/licensing for details. - - -# This module is shared by multiple languages; use include blocker. -if(__DARWIN_COMPILER_GNU) - return() -endif() -set(__DARWIN_COMPILER_GNU 1) - -macro(__darwin_compiler_gnu lang) - set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output - # GNU does not have -shared on OS X - set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") - set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") - - if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 4.3) - set(CMAKE_${lang}_SYSTEM_FRAMEWORK_SEARCH_FLAG "-iframework ") - endif() -endmacro() - -macro(cmake_gnu_set_sysroot_flag lang) - if(NOT DEFINED CMAKE_${lang}_SYSROOT_FLAG) - set(_doc "${lang} compiler has -isysroot") - message(STATUS "Checking whether ${_doc}") - execute_process( - COMMAND ${CMAKE_${lang}_COMPILER} "-v" "--help" - OUTPUT_VARIABLE _gcc_help - ERROR_VARIABLE _gcc_help - ) - if("${_gcc_help}" MATCHES "isysroot") - message(STATUS "Checking whether ${_doc} - yes") - set(CMAKE_${lang}_SYSROOT_FLAG "-isysroot") - else() - message(STATUS "Checking whether ${_doc} - no") - set(CMAKE_${lang}_SYSROOT_FLAG "") - endif() - set(CMAKE_${lang}_SYSROOT_FLAG_CODE "set(CMAKE_${lang}_SYSROOT_FLAG \"${CMAKE_${lang}_SYSROOT_FLAG}\")") - endif() -endmacro() - -macro(cmake_gnu_set_osx_deployment_target_flag lang) - if(NOT DEFINED CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG) - set(_doc "${lang} compiler supports OSX deployment target flag") - message(STATUS "Checking whether ${_doc}") - execute_process( - COMMAND ${CMAKE_${lang}_COMPILER} "-v" "--help" - OUTPUT_VARIABLE _gcc_help - ERROR_VARIABLE _gcc_help - ) - if("${_gcc_help}" MATCHES "macosx-version-min") - message(STATUS "Checking whether ${_doc} - yes") - set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mmacosx-version-min=") - else() - message(STATUS "Checking whether ${_doc} - no") - set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "") - endif() - set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG_CODE "set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG \"${CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG}\")") - endif() -endmacro() diff --git a/Modules/Platform/Darwin-Initialize.cmake b/Modules/Platform/Darwin-Initialize.cmake index b539e45..3db77aa 100644 --- a/Modules/Platform/Darwin-Initialize.cmake +++ b/Modules/Platform/Darwin-Initialize.cmake @@ -20,6 +20,10 @@ execute_process(COMMAND sw_vers -productVersion set(CMAKE_OSX_ARCHITECTURES "$ENV{CMAKE_OSX_ARCHITECTURES}" CACHE STRING "Build architectures for OSX") +# macOS, iOS, tvOS, and watchOS should lookup compilers from +# Platform/Apple-${CMAKE_CXX_COMPILER_ID}- +set(CMAKE_EFFECTIVE_SYSTEM_NAME "Apple") + #---------------------------------------------------------------------------- # _CURRENT_OSX_VERSION - as a two-component string: 10.5, 10.6, ... # diff --git a/Modules/Platform/Darwin-Intel-C.cmake b/Modules/Platform/Darwin-Intel-C.cmake deleted file mode 100644 index 81c630f..0000000 --- a/Modules/Platform/Darwin-Intel-C.cmake +++ /dev/null @@ -1,2 +0,0 @@ -include(Platform/Darwin-Intel) -__darwin_compiler_intel(C) diff --git a/Modules/Platform/Darwin-Intel-CXX.cmake b/Modules/Platform/Darwin-Intel-CXX.cmake deleted file mode 100644 index 90ae53b..0000000 --- a/Modules/Platform/Darwin-Intel-CXX.cmake +++ /dev/null @@ -1,2 +0,0 @@ -include(Platform/Darwin-Intel) -__darwin_compiler_intel(CXX) diff --git a/Modules/Platform/Darwin-Intel-Fortran.cmake b/Modules/Platform/Darwin-Intel-Fortran.cmake deleted file mode 100644 index 2299da9..0000000 --- a/Modules/Platform/Darwin-Intel-Fortran.cmake +++ /dev/null @@ -1,8 +0,0 @@ -# Distributed under the OSI-approved BSD 3-Clause License. See accompanying -# file Copyright.txt or https://cmake.org/licensing for details. - -include(Platform/Darwin-Intel) -__darwin_compiler_intel(Fortran) - -set(CMAKE_Fortran_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ") -set(CMAKE_Fortran_OSX_CURRENT_VERSION_FLAG "-current_version ") diff --git a/Modules/Platform/Darwin-Intel.cmake b/Modules/Platform/Darwin-Intel.cmake deleted file mode 100644 index dd33cec..0000000 --- a/Modules/Platform/Darwin-Intel.cmake +++ /dev/null @@ -1,19 +0,0 @@ -# Distributed under the OSI-approved BSD 3-Clause License. See accompanying -# file Copyright.txt or https://cmake.org/licensing for details. - - -# This module is shared by multiple languages; use include blocker. -if(__DARWIN_COMPILER_INTEL) - return() -endif() -set(__DARWIN_COMPILER_INTEL 1) - -macro(__darwin_compiler_intel lang) - set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output - set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") - set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") - - if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 12.0) - set(CMAKE_${lang}_COMPILE_OPTIONS_VISIBILITY "-fvisibility=") - endif() -endmacro() diff --git a/Modules/Platform/Darwin-NAG-Fortran.cmake b/Modules/Platform/Darwin-NAG-Fortran.cmake deleted file mode 100644 index 8d3e741..0000000 --- a/Modules/Platform/Darwin-NAG-Fortran.cmake +++ /dev/null @@ -1,15 +0,0 @@ -# Distributed under the OSI-approved BSD 3-Clause License. See accompanying -# file Copyright.txt or https://cmake.org/licensing for details. - -set(CMAKE_Fortran_VERBOSE_FLAG "-Wl,-v") # Runs gcc under the hood. - -# Need -fpp explicitly on case-insensitive filesystem. -set(CMAKE_Fortran_COMPILE_OBJECT - " -fpp -o -c ") - -set(CMAKE_Fortran_OSX_COMPATIBILITY_VERSION_FLAG "-Wl,-compatibility_version -Wl,") -set(CMAKE_Fortran_OSX_CURRENT_VERSION_FLAG "-Wl,-current_version -Wl,") -set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-Wl,-shared") -set(CMAKE_SHARED_LIBRARY_SONAME_Fortran_FLAG "-Wl,-install_name -Wl,") -set(CMAKE_Fortran_CREATE_SHARED_LIBRARY - " -o ") diff --git a/Modules/Platform/Darwin-NVIDIA-CUDA.cmake b/Modules/Platform/Darwin-NVIDIA-CUDA.cmake deleted file mode 100644 index bec3948..0000000 --- a/Modules/Platform/Darwin-NVIDIA-CUDA.cmake +++ /dev/null @@ -1,19 +0,0 @@ -include(Platform/Darwin) - -set(__IMPLICT_LINKS ) -foreach(dir ${CMAKE_CUDA_HOST_IMPLICIT_LINK_DIRECTORIES}) - string(APPEND __IMPLICT_LINKS " -L\"${dir}\"") -endforeach() -foreach(lib ${CMAKE_CUDA_HOST_IMPLICIT_LINK_LIBRARIES}) - if(${lib} MATCHES "/") - string(APPEND __IMPLICT_LINKS " \"${lib}\"") - else() - string(APPEND __IMPLICT_LINKS " -l${lib}") - endif() -endforeach() - -set(CMAKE_SHARED_LIBRARY_CREATE_CUDA_FLAGS "-shared -Wl,-headerpad_max_install_names") -set(CMAKE_SHARED_MODULE_CREATE_CUDA_FLAGS "-shared -Wl,-headerpad_max_install_names") - -set(CMAKE_CUDA_CREATE_SHARED_LIBRARY " -o ${__IMPLICT_LINKS}") -set(CMAKE_CUDA_CREATE_SHARED_MODULE " -o ${__IMPLICT_LINKS}") diff --git a/Modules/Platform/Darwin-PGI-C.cmake b/Modules/Platform/Darwin-PGI-C.cmake deleted file mode 100644 index 790919b..0000000 --- a/Modules/Platform/Darwin-PGI-C.cmake +++ /dev/null @@ -1,2 +0,0 @@ -include(Platform/Darwin-PGI) -__darwin_compiler_pgi(C) diff --git a/Modules/Platform/Darwin-PGI-CXX.cmake b/Modules/Platform/Darwin-PGI-CXX.cmake deleted file mode 100644 index ceaed71..0000000 --- a/Modules/Platform/Darwin-PGI-CXX.cmake +++ /dev/null @@ -1,2 +0,0 @@ -include(Platform/Darwin-PGI) -__darwin_compiler_pgi(CXX) diff --git a/Modules/Platform/Darwin-PGI-Fortran.cmake b/Modules/Platform/Darwin-PGI-Fortran.cmake deleted file mode 100644 index 146807b..0000000 --- a/Modules/Platform/Darwin-PGI-Fortran.cmake +++ /dev/null @@ -1,2 +0,0 @@ -include(Platform/Darwin-PGI) -__darwin_compiler_pgi(Fortran) diff --git a/Modules/Platform/Darwin-PGI.cmake b/Modules/Platform/Darwin-PGI.cmake deleted file mode 100644 index 04479a8..0000000 --- a/Modules/Platform/Darwin-PGI.cmake +++ /dev/null @@ -1,14 +0,0 @@ -# Distributed under the OSI-approved BSD 3-Clause License. See accompanying -# file Copyright.txt or https://cmake.org/licensing for details. - -# This module is shared by multiple languages; use include blocker. -if(__DARWIN_COMPILER_PGI) - return() -endif() -set(__DARWIN_COMPILER_PGI 1) - -macro(__darwin_compiler_pgi lang) - set(CMAKE_${lang}_OSX_COMPATIBILITY_VERSION_FLAG "-Wl,-compatibility_version,") - set(CMAKE_${lang}_OSX_CURRENT_VERSION_FLAG "-Wl,-current_version,") - set(CMAKE_SHARED_LIBRARY_SONAME_${lang}_FLAG "-Wl,-install_name") -endmacro() diff --git a/Modules/Platform/Darwin-VisualAge-C.cmake b/Modules/Platform/Darwin-VisualAge-C.cmake deleted file mode 100644 index 859914f..0000000 --- a/Modules/Platform/Darwin-VisualAge-C.cmake +++ /dev/null @@ -1 +0,0 @@ -include(Platform/Darwin-XL-C) diff --git a/Modules/Platform/Darwin-VisualAge-CXX.cmake b/Modules/Platform/Darwin-VisualAge-CXX.cmake deleted file mode 100644 index 46c1005..0000000 --- a/Modules/Platform/Darwin-VisualAge-CXX.cmake +++ /dev/null @@ -1 +0,0 @@ -include(Platform/Darwin-XL-CXX) diff --git a/Modules/Platform/Darwin-XL-C.cmake b/Modules/Platform/Darwin-XL-C.cmake deleted file mode 100644 index 2aeb132..0000000 --- a/Modules/Platform/Darwin-XL-C.cmake +++ /dev/null @@ -1,8 +0,0 @@ -set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-qmkshrobj") -set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle") - -# Enable shared library versioning. -set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-install_name") - -# -qhalt=e = Halt on error messages (rather than just severe errors) -string(APPEND CMAKE_C_FLAGS_INIT " -qhalt=e") diff --git a/Modules/Platform/Darwin-XL-CXX.cmake b/Modules/Platform/Darwin-XL-CXX.cmake deleted file mode 100644 index f8e1906..0000000 --- a/Modules/Platform/Darwin-XL-CXX.cmake +++ /dev/null @@ -1,8 +0,0 @@ -set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-qmkshrobj") -set(CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS "-bundle") - -# Enable shared library versioning. -set(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-install_name") - -# -qhalt=e = Halt on error messages (rather than just severe errors) -string(APPEND CMAKE_C_FLAGS_INIT " -qhalt=e") -- cgit v0.12