mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 06:30:20 -06:00
Extend commit 96a953b1ed (Add options to specify linker tool, 2023-09-27,
v3.29.0-rc1~577^2) with the `CMAKE_Swift_USING_LINKER_*` variables
needed to support `CMAKE_LINKER_TYPE` for Swift.
13 lines
269 B
CMake
13 lines
269 B
CMake
enable_language(C)
|
|
|
|
set(CMAKE_LINKER_TYPE APPLE_CLASSIC)
|
|
|
|
add_executable(main main.c)
|
|
target_link_libraries(main PRIVATE m m)
|
|
|
|
if(CMake_TEST_Swift)
|
|
enable_language(Swift)
|
|
add_executable(main_swift main.swift)
|
|
target_link_libraries(main_swift PRIVATE m m)
|
|
endif()
|