diff --git a/Modules/Internal/CMakeASMLinkerInformation.cmake b/Modules/Internal/CMakeASMLinkerInformation.cmake index 5f81b1feba..2d547dc476 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 d918f84880..ddc98278a2 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 4081e50be1..1d375f2bd0 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 3929bbbb00..2398b50738 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 a39f3deef2..cddd0e9cc8 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 d37d66d9ef..e996889efc 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 ea92880088..a26fa42316 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 3b51ba77b2..d61dd1a2ab 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 6d1881fa12..f3a1d07cb7 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 0000000000..8e44bafe84 --- /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 0000000000..d3df948fad --- /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 0000000000..aff308bc80 --- /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 0000000000..bfef8b9f70 --- /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 0000000000..2d0efda7e9 --- /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 0000000000..33c46d53a9 --- /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 0000000000..870e59e9dc --- /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 0000000000..efeeb16222 --- /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 0000000000..46a516c106 --- /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 0000000000..2e30d91e17 --- /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 0000000000..e61470c413 --- /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 0000000000..297a160f5f --- /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 0000000000..7accb62cbd --- /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 0000000000..7d6f303a64 --- /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 0000000000..ad69d95b22 --- /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 0000000000..297a160f5f --- /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 0000000000..7accb62cbd --- /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 0000000000..39b77f5cdf --- /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 0000000000..021310c465 --- /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 0000000000..a42075f089 --- /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 0000000000..ec93c6b3f2 --- /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 0000000000..7a023b8c18 --- /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 0000000000..2a71ff62ca --- /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 0000000000..71db4da750 --- /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 0000000000..8b1415f6f5 --- /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 0000000000..fc6c9ea1c3 --- /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 0000000000..a891d7c1f9 --- /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 0000000000..297a160f5f --- /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 0000000000..7accb62cbd --- /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 0000000000..1d753f3ea8 --- /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 0000000000..cfba4bc35c --- /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 0000000000..f2a4e29aca --- /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 0000000000..ec93c6b3f2 --- /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 0000000000..7a023b8c18 --- /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 0000000000..2a71ff62ca --- /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 0000000000..71db4da750 --- /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 0000000000..8b1415f6f5 --- /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 0000000000..fc6c9ea1c3 --- /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 0000000000..a891d7c1f9 --- /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 0000000000..297a160f5f --- /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 0000000000..7accb62cbd --- /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)