diff options
author | Brad King <brad.king@kitware.com> | 2024-11-13 14:17:05 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-11-13 14:17:24 (GMT) |
commit | 10f24d1d9264ae81567ab8620950b924e46245ee (patch) | |
tree | d67fa8582d3411aae37ab97c4643c88d3c9ccd86 /Modules | |
parent | 7c999c19af18566a11dae841111a241b86014a64 (diff) | |
parent | d2997ab6014264167d485512c5a97470d8e2dbcb (diff) | |
download | CMake-10f24d1d9264ae81567ab8620950b924e46245ee.zip CMake-10f24d1d9264ae81567ab8620950b924e46245ee.tar.gz CMake-10f24d1d9264ae81567ab8620950b924e46245ee.tar.bz2 |
Merge topic 'WHOLE_ARCHIVE-various-systems' into release-3.31
d2997ab601 Linker configuration: Add missing platforms
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !9992
Diffstat (limited to 'Modules')
50 files changed, 246 insertions, 9 deletions
diff --git a/Modules/Internal/CMakeASMLinkerInformation.cmake b/Modules/Internal/CMakeASMLinkerInformation.cmake index 5f81b1f..2d547dc 100644 --- a/Modules/Internal/CMakeASMLinkerInformation.cmake +++ b/Modules/Internal/CMakeASMLinkerInformation.cmake @@ -29,7 +29,7 @@ endif() # We specify the platform linker information in the system file. if (NOT _INCLUDED_FILE) - include(Platform/Linker/${CMAKE_SYSTEM_NAME}-ASM${ASM_DIALECT} OPTIONAL) + include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-ASM${ASM_DIALECT} OPTIONAL) endif () set(CMAKE_ASM${ASM_DIALECT}_LINKER_INFORMATION_LOADED 1) diff --git a/Modules/Internal/CMakeCLinkerInformation.cmake b/Modules/Internal/CMakeCLinkerInformation.cmake index d918f84..ddc9827 100644 --- a/Modules/Internal/CMakeCLinkerInformation.cmake +++ b/Modules/Internal/CMakeCLinkerInformation.cmake @@ -31,7 +31,7 @@ endif() # We specify the platform linker information in the system file. if (NOT _INCLUDED_FILE) - include(Platform/Linker/${CMAKE_SYSTEM_NAME}-C OPTIONAL) + include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-C OPTIONAL) endif () _cmake_common_linker_platform_flags(C) diff --git a/Modules/Internal/CMakeCUDALinkerInformation.cmake b/Modules/Internal/CMakeCUDALinkerInformation.cmake index 4081e50..1d375f2 100644 --- a/Modules/Internal/CMakeCUDALinkerInformation.cmake +++ b/Modules/Internal/CMakeCUDALinkerInformation.cmake @@ -31,7 +31,7 @@ endif() # We specify the platform linker information in the system file. if (NOT _INCLUDED_FILE) - include(Platform/Linker/${CMAKE_SYSTEM_NAME}-CUDA OPTIONAL) + include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-CUDA OPTIONAL) endif () _cmake_common_linker_platform_flags(CUDA) diff --git a/Modules/Internal/CMakeCXXLinkerInformation.cmake b/Modules/Internal/CMakeCXXLinkerInformation.cmake index 3929bbb..2398b50 100644 --- a/Modules/Internal/CMakeCXXLinkerInformation.cmake +++ b/Modules/Internal/CMakeCXXLinkerInformation.cmake @@ -31,7 +31,7 @@ endif() # We specify the platform linker information in the system file. if (NOT _INCLUDED_FILE) - include(Platform/Linker/${CMAKE_SYSTEM_NAME}-CXX OPTIONAL) + include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-CXX OPTIONAL) endif () _cmake_common_linker_platform_flags(CXX) diff --git a/Modules/Internal/CMakeFortranLinkerInformation.cmake b/Modules/Internal/CMakeFortranLinkerInformation.cmake index a39f3de..cddd0e9 100644 --- a/Modules/Internal/CMakeFortranLinkerInformation.cmake +++ b/Modules/Internal/CMakeFortranLinkerInformation.cmake @@ -31,7 +31,7 @@ endif() # We specify the platform linker information in the system file. if (NOT _INCLUDED_FILE) - include(Platform/Linker/${CMAKE_SYSTEM_NAME}-Fortran OPTIONAL) + include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-Fortran OPTIONAL) endif () _cmake_common_linker_platform_flags(Fortran) diff --git a/Modules/Internal/CMakeHIPLinkerInformation.cmake b/Modules/Internal/CMakeHIPLinkerInformation.cmake index d37d66d..e996889 100644 --- a/Modules/Internal/CMakeHIPLinkerInformation.cmake +++ b/Modules/Internal/CMakeHIPLinkerInformation.cmake @@ -31,7 +31,7 @@ endif() # We specify the platform linker information in the system file. if (NOT _INCLUDED_FILE) - include(Platform/Linker/${CMAKE_SYSTEM_NAME}-HIP OPTIONAL) + include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-HIP OPTIONAL) endif () _cmake_common_linker_platform_flags(HIP) diff --git a/Modules/Internal/CMakeOBJCLinkerInformation.cmake b/Modules/Internal/CMakeOBJCLinkerInformation.cmake index ea92880..a26fa42 100644 --- a/Modules/Internal/CMakeOBJCLinkerInformation.cmake +++ b/Modules/Internal/CMakeOBJCLinkerInformation.cmake @@ -31,7 +31,7 @@ endif() # We specify the platform linker information in the system file. if (NOT _INCLUDED_FILE) - include(Platform/Linker/${CMAKE_SYSTEM_NAME}-OBJC OPTIONAL) + include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-OBJC OPTIONAL) endif () _cmake_common_linker_platform_flags(OBJC) diff --git a/Modules/Internal/CMakeOBJCXXLinkerInformation.cmake b/Modules/Internal/CMakeOBJCXXLinkerInformation.cmake index 3b51ba7..d61dd1a 100644 --- a/Modules/Internal/CMakeOBJCXXLinkerInformation.cmake +++ b/Modules/Internal/CMakeOBJCXXLinkerInformation.cmake @@ -31,7 +31,7 @@ endif() # We specify the platform linker information in the system file. if (NOT _INCLUDED_FILE) - include(Platform/Linker/${CMAKE_SYSTEM_NAME}-OBJCXX OPTIONAL) + include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-OBJCXX OPTIONAL) endif () _cmake_common_linker_platform_flags(OBJCXX) diff --git a/Modules/Internal/CMakeSwiftLinkerInformation.cmake b/Modules/Internal/CMakeSwiftLinkerInformation.cmake index 6d1881f..f3a1d07 100644 --- a/Modules/Internal/CMakeSwiftLinkerInformation.cmake +++ b/Modules/Internal/CMakeSwiftLinkerInformation.cmake @@ -31,7 +31,7 @@ endif() # We specify the platform linker information in the system file. if (NOT _INCLUDED_FILE) - include(Platform/Linker/${CMAKE_SYSTEM_NAME}-Swift OPTIONAL) + include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-Swift OPTIONAL) endif () _cmake_common_linker_platform_flags(Swift) diff --git a/Modules/Platform/Linker/Android-ASM.cmake b/Modules/Platform/Linker/Android-ASM.cmake new file mode 100644 index 0000000..8e44baf --- /dev/null +++ b/Modules/Platform/Linker/Android-ASM.cmake @@ -0,0 +1,5 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +# GNU is the default linker +include(Platform/Linker/Android-GNU-ASM) diff --git a/Modules/Platform/Linker/Android-C.cmake b/Modules/Platform/Linker/Android-C.cmake new file mode 100644 index 0000000..d3df948 --- /dev/null +++ b/Modules/Platform/Linker/Android-C.cmake @@ -0,0 +1,5 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +# GNU is the default linker +include(Platform/Linker/Android-GNU-C) diff --git a/Modules/Platform/Linker/Android-CXX.cmake b/Modules/Platform/Linker/Android-CXX.cmake new file mode 100644 index 0000000..aff308b --- /dev/null +++ b/Modules/Platform/Linker/Android-CXX.cmake @@ -0,0 +1,5 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +# GNU is the default linker +include(Platform/Linker/Android-GNU-CXX) diff --git a/Modules/Platform/Linker/Android-GNU-ASM.cmake b/Modules/Platform/Linker/Android-GNU-ASM.cmake new file mode 100644 index 0000000..bfef8b9 --- /dev/null +++ b/Modules/Platform/Linker/Android-GNU-ASM.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Linux-GNU-ASM) diff --git a/Modules/Platform/Linker/Android-GNU-C.cmake b/Modules/Platform/Linker/Android-GNU-C.cmake new file mode 100644 index 0000000..2d0efda --- /dev/null +++ b/Modules/Platform/Linker/Android-GNU-C.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Linux-GNU-C) diff --git a/Modules/Platform/Linker/Android-GNU-CXX.cmake b/Modules/Platform/Linker/Android-GNU-CXX.cmake new file mode 100644 index 0000000..33c46d5 --- /dev/null +++ b/Modules/Platform/Linker/Android-GNU-CXX.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Linux-GNU-CXX) diff --git a/Modules/Platform/Linker/Android-LLD-ASM.cmake b/Modules/Platform/Linker/Android-LLD-ASM.cmake new file mode 100644 index 0000000..870e59e --- /dev/null +++ b/Modules/Platform/Linker/Android-LLD-ASM.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Linux-LLD-ASM) diff --git a/Modules/Platform/Linker/Android-LLD-C.cmake b/Modules/Platform/Linker/Android-LLD-C.cmake new file mode 100644 index 0000000..efeeb16 --- /dev/null +++ b/Modules/Platform/Linker/Android-LLD-C.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Linux-LLD-C) diff --git a/Modules/Platform/Linker/Android-LLD-CXX.cmake b/Modules/Platform/Linker/Android-LLD-CXX.cmake new file mode 100644 index 0000000..46a516c --- /dev/null +++ b/Modules/Platform/Linker/Android-LLD-CXX.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Linux-LLD-CXX) diff --git a/Modules/Platform/Linker/WindowsCE-C.cmake b/Modules/Platform/Linker/WindowsCE-C.cmake new file mode 100644 index 0000000..2e30d91 --- /dev/null +++ b/Modules/Platform/Linker/WindowsCE-C.cmake @@ -0,0 +1,5 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +# MSVC is the default linker +include(Platform/Linker/WindowsCE-MSVC-C) diff --git a/Modules/Platform/Linker/WindowsCE-CXX.cmake b/Modules/Platform/Linker/WindowsCE-CXX.cmake new file mode 100644 index 0000000..e61470c --- /dev/null +++ b/Modules/Platform/Linker/WindowsCE-CXX.cmake @@ -0,0 +1,5 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +# MSVC is the default linker +include(Platform/Linker/WindowsCE-MSVC-CXX) diff --git a/Modules/Platform/Linker/WindowsCE-MSVC-C.cmake b/Modules/Platform/Linker/WindowsCE-MSVC-C.cmake new file mode 100644 index 0000000..297a160 --- /dev/null +++ b/Modules/Platform/Linker/WindowsCE-MSVC-C.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-MSVC-C) diff --git a/Modules/Platform/Linker/WindowsCE-MSVC-CXX.cmake b/Modules/Platform/Linker/WindowsCE-MSVC-CXX.cmake new file mode 100644 index 0000000..7accb62 --- /dev/null +++ b/Modules/Platform/Linker/WindowsCE-MSVC-CXX.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-MSVC-CXX) diff --git a/Modules/Platform/Linker/WindowsKernelModeDriver-C.cmake b/Modules/Platform/Linker/WindowsKernelModeDriver-C.cmake new file mode 100644 index 0000000..7d6f303 --- /dev/null +++ b/Modules/Platform/Linker/WindowsKernelModeDriver-C.cmake @@ -0,0 +1,5 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +# MSVC is the default linker +include(Platform/Linker/WindowsKernelModeDriver-MSVC-C) diff --git a/Modules/Platform/Linker/WindowsKernelModeDriver-CXX.cmake b/Modules/Platform/Linker/WindowsKernelModeDriver-CXX.cmake new file mode 100644 index 0000000..ad69d95 --- /dev/null +++ b/Modules/Platform/Linker/WindowsKernelModeDriver-CXX.cmake @@ -0,0 +1,5 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +# MSVC is the default linker +include(Platform/Linker/WindowsKernelModeDriver-MSVC-CXX) diff --git a/Modules/Platform/Linker/WindowsKernelModeDriver-MSVC-C.cmake b/Modules/Platform/Linker/WindowsKernelModeDriver-MSVC-C.cmake new file mode 100644 index 0000000..297a160 --- /dev/null +++ b/Modules/Platform/Linker/WindowsKernelModeDriver-MSVC-C.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-MSVC-C) diff --git a/Modules/Platform/Linker/WindowsKernelModeDriver-MSVC-CXX.cmake b/Modules/Platform/Linker/WindowsKernelModeDriver-MSVC-CXX.cmake new file mode 100644 index 0000000..7accb62 --- /dev/null +++ b/Modules/Platform/Linker/WindowsKernelModeDriver-MSVC-CXX.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-MSVC-CXX) diff --git a/Modules/Platform/Linker/WindowsPhone-ASM.cmake b/Modules/Platform/Linker/WindowsPhone-ASM.cmake new file mode 100644 index 0000000..39b77f5 --- /dev/null +++ b/Modules/Platform/Linker/WindowsPhone-ASM.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. + +block(SCOPE_FOR POLICIES) +cmake_policy(SET CMP0054 NEW) + +if(CMAKE_ASM_SIMULATE_ID STREQUAL "MSVC") + # MSVC is the default linker + include(Platform/Linker/WindowsPhone-MSVC-ASM) +else() + # GNU is the default linker + include(Platform/Linker/WindowsPhone-GNU-ASM) +endif() + +endblock() diff --git a/Modules/Platform/Linker/WindowsPhone-C.cmake b/Modules/Platform/Linker/WindowsPhone-C.cmake new file mode 100644 index 0000000..021310c --- /dev/null +++ b/Modules/Platform/Linker/WindowsPhone-C.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. + +block(SCOPE_FOR POLICIES) +cmake_policy(SET CMP0054 NEW) + +if(CMAKE_C_SIMULATE_ID STREQUAL "MSVC") + # MSVC is the default linker + include(Platform/Linker/WindowsPhone-MSVC-C) +else() + # GNU is the default linker + include(Platform/Linker/WindowsPhone-GNU-C) +endif() + +endblock() diff --git a/Modules/Platform/Linker/WindowsPhone-CXX.cmake b/Modules/Platform/Linker/WindowsPhone-CXX.cmake new file mode 100644 index 0000000..a42075f --- /dev/null +++ b/Modules/Platform/Linker/WindowsPhone-CXX.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. + +block(SCOPE_FOR POLICIES) +cmake_policy(SET CMP0054 NEW) + +if(CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC") + # MSVC is the default linker + include(Platform/Linker/WindowsPhone-MSVC-CXX) +else() + # GNU is the default linker + include(Platform/Linker/WindowsPhone-GNU-CXX) +endif() + +endblock() diff --git a/Modules/Platform/Linker/WindowsPhone-GNU-ASM.cmake b/Modules/Platform/Linker/WindowsPhone-GNU-ASM.cmake new file mode 100644 index 0000000..ec93c6b --- /dev/null +++ b/Modules/Platform/Linker/WindowsPhone-GNU-ASM.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-GNU-ASM) diff --git a/Modules/Platform/Linker/WindowsPhone-GNU-C.cmake b/Modules/Platform/Linker/WindowsPhone-GNU-C.cmake new file mode 100644 index 0000000..7a023b8 --- /dev/null +++ b/Modules/Platform/Linker/WindowsPhone-GNU-C.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-GNU-C) diff --git a/Modules/Platform/Linker/WindowsPhone-GNU-CXX.cmake b/Modules/Platform/Linker/WindowsPhone-GNU-CXX.cmake new file mode 100644 index 0000000..2a71ff6 --- /dev/null +++ b/Modules/Platform/Linker/WindowsPhone-GNU-CXX.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-GNU-CXX) diff --git a/Modules/Platform/Linker/WindowsPhone-LLD-ASM.cmake b/Modules/Platform/Linker/WindowsPhone-LLD-ASM.cmake new file mode 100644 index 0000000..71db4da --- /dev/null +++ b/Modules/Platform/Linker/WindowsPhone-LLD-ASM.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-LLD-ASM) diff --git a/Modules/Platform/Linker/WindowsPhone-LLD-C.cmake b/Modules/Platform/Linker/WindowsPhone-LLD-C.cmake new file mode 100644 index 0000000..8b1415f --- /dev/null +++ b/Modules/Platform/Linker/WindowsPhone-LLD-C.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-LLD-C) diff --git a/Modules/Platform/Linker/WindowsPhone-LLD-CXX.cmake b/Modules/Platform/Linker/WindowsPhone-LLD-CXX.cmake new file mode 100644 index 0000000..fc6c9ea --- /dev/null +++ b/Modules/Platform/Linker/WindowsPhone-LLD-CXX.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-LLD-CXX) diff --git a/Modules/Platform/Linker/WindowsPhone-MSVC-ASM.cmake b/Modules/Platform/Linker/WindowsPhone-MSVC-ASM.cmake new file mode 100644 index 0000000..a891d7c --- /dev/null +++ b/Modules/Platform/Linker/WindowsPhone-MSVC-ASM.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-MSVC-ASM) diff --git a/Modules/Platform/Linker/WindowsPhone-MSVC-C.cmake b/Modules/Platform/Linker/WindowsPhone-MSVC-C.cmake new file mode 100644 index 0000000..297a160 --- /dev/null +++ b/Modules/Platform/Linker/WindowsPhone-MSVC-C.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-MSVC-C) diff --git a/Modules/Platform/Linker/WindowsPhone-MSVC-CXX.cmake b/Modules/Platform/Linker/WindowsPhone-MSVC-CXX.cmake new file mode 100644 index 0000000..7accb62 --- /dev/null +++ b/Modules/Platform/Linker/WindowsPhone-MSVC-CXX.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-MSVC-CXX) diff --git a/Modules/Platform/Linker/WindowsStore-ASM.cmake b/Modules/Platform/Linker/WindowsStore-ASM.cmake new file mode 100644 index 0000000..1d753f3 --- /dev/null +++ b/Modules/Platform/Linker/WindowsStore-ASM.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. + +block(SCOPE_FOR POLICIES) +cmake_policy(SET CMP0054 NEW) + +if(CMAKE_ASM_SIMULATE_ID STREQUAL "MSVC") + # MSVC is the default linker + include(Platform/Linker/WindowsStore-MSVC-ASM) +else() + # GNU is the default linker + include(Platform/Linker/WindowsStore-GNU-ASM) +endif() + +endblock() diff --git a/Modules/Platform/Linker/WindowsStore-C.cmake b/Modules/Platform/Linker/WindowsStore-C.cmake new file mode 100644 index 0000000..cfba4bc --- /dev/null +++ b/Modules/Platform/Linker/WindowsStore-C.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. + +block(SCOPE_FOR POLICIES) +cmake_policy(SET CMP0054 NEW) + +if(CMAKE_C_SIMULATE_ID STREQUAL "MSVC") + # MSVC is the default linker + include(Platform/Linker/WindowsStore-MSVC-C) +else() + # GNU is the default linker + include(Platform/Linker/WindowsStore-GNU-C) +endif() + +endblock() diff --git a/Modules/Platform/Linker/WindowsStore-CXX.cmake b/Modules/Platform/Linker/WindowsStore-CXX.cmake new file mode 100644 index 0000000..f2a4e29 --- /dev/null +++ b/Modules/Platform/Linker/WindowsStore-CXX.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. + +block(SCOPE_FOR POLICIES) +cmake_policy(SET CMP0054 NEW) + +if(CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC") + # MSVC is the default linker + include(Platform/Linker/WindowsStore-MSVC-CXX) +else() + # GNU is the default linker + include(Platform/Linker/WindowsStore-GNU-CXX) +endif() + +endblock() diff --git a/Modules/Platform/Linker/WindowsStore-GNU-ASM.cmake b/Modules/Platform/Linker/WindowsStore-GNU-ASM.cmake new file mode 100644 index 0000000..ec93c6b --- /dev/null +++ b/Modules/Platform/Linker/WindowsStore-GNU-ASM.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-GNU-ASM) diff --git a/Modules/Platform/Linker/WindowsStore-GNU-C.cmake b/Modules/Platform/Linker/WindowsStore-GNU-C.cmake new file mode 100644 index 0000000..7a023b8 --- /dev/null +++ b/Modules/Platform/Linker/WindowsStore-GNU-C.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-GNU-C) diff --git a/Modules/Platform/Linker/WindowsStore-GNU-CXX.cmake b/Modules/Platform/Linker/WindowsStore-GNU-CXX.cmake new file mode 100644 index 0000000..2a71ff6 --- /dev/null +++ b/Modules/Platform/Linker/WindowsStore-GNU-CXX.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-GNU-CXX) diff --git a/Modules/Platform/Linker/WindowsStore-LLD-ASM.cmake b/Modules/Platform/Linker/WindowsStore-LLD-ASM.cmake new file mode 100644 index 0000000..71db4da --- /dev/null +++ b/Modules/Platform/Linker/WindowsStore-LLD-ASM.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-LLD-ASM) diff --git a/Modules/Platform/Linker/WindowsStore-LLD-C.cmake b/Modules/Platform/Linker/WindowsStore-LLD-C.cmake new file mode 100644 index 0000000..8b1415f --- /dev/null +++ b/Modules/Platform/Linker/WindowsStore-LLD-C.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-LLD-C) diff --git a/Modules/Platform/Linker/WindowsStore-LLD-CXX.cmake b/Modules/Platform/Linker/WindowsStore-LLD-CXX.cmake new file mode 100644 index 0000000..fc6c9ea --- /dev/null +++ b/Modules/Platform/Linker/WindowsStore-LLD-CXX.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-LLD-CXX) diff --git a/Modules/Platform/Linker/WindowsStore-MSVC-ASM.cmake b/Modules/Platform/Linker/WindowsStore-MSVC-ASM.cmake new file mode 100644 index 0000000..a891d7c --- /dev/null +++ b/Modules/Platform/Linker/WindowsStore-MSVC-ASM.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-MSVC-ASM) diff --git a/Modules/Platform/Linker/WindowsStore-MSVC-C.cmake b/Modules/Platform/Linker/WindowsStore-MSVC-C.cmake new file mode 100644 index 0000000..297a160 --- /dev/null +++ b/Modules/Platform/Linker/WindowsStore-MSVC-C.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-MSVC-C) diff --git a/Modules/Platform/Linker/WindowsStore-MSVC-CXX.cmake b/Modules/Platform/Linker/WindowsStore-MSVC-CXX.cmake new file mode 100644 index 0000000..7accb62 --- /dev/null +++ b/Modules/Platform/Linker/WindowsStore-MSVC-CXX.cmake @@ -0,0 +1,4 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +include(Platform/Linker/Windows-MSVC-CXX) |