mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
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
5 lines
109 B
CMake
5 lines
109 B
CMake
enable_language(Swift)
|
|
add_executable(E E.swift)
|
|
set_target_properties(E PROPERTIES
|
|
WIN32_EXECUTABLE TRUE)
|