mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 14:23:10 -05:00
b06f4c8a74
Currently, the compiler does not synthesize the correct entry point for the application and passing the subsystem flag does not work the same way with the Swift linker language. Add a check to prevent the application of `WIN32_EXECUTABLE` to Swift executables until they can be properly supported. This will prevent the need for a future policy change. Closes: #19325
14 lines
277 B
CMake
14 lines
277 B
CMake
include(RunCMake)
|
|
|
|
if(RunCMake_GENERATOR STREQUAL Xcode)
|
|
if(XCODE_BELOW_6_1)
|
|
run_cmake(XcodeTooOld)
|
|
endif()
|
|
elseif(RunCMake_GENERATOR STREQUAL Ninja)
|
|
if(CMAKE_Swift_COMPILER)
|
|
run_cmake(Win32ExecutableDisallowed)
|
|
endif()
|
|
else()
|
|
run_cmake(NotSupported)
|
|
endif()
|