mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Linker configuration: Add missing platforms
The following platforms were missing: * Android * WindowsCE, WindowsPhone, WindowsStore and WindowsKernelModeDriver And enhance various Apple platforms support (iOS, tvOS, etc...) Fixes: #26439
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user