We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17de09d commit f8e8cf4Copy full SHA for f8e8cf4
src/desktop/CMakeLists.txt
@@ -8,10 +8,11 @@ set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME NovaSwarm)
8
9
if(WIN32)
10
target_sources(${PROJECT_NAME} PRIVATE windows/app.rc)
11
-
12
- set(subsystem $<IF:$<BOOL:$<CONFIG:Debug>>,CONSOLE,WINDOWS>)
13
- target_link_options(${PROJECT_NAME} PRIVATE
14
- /SUBSYSTEM:${subsystem}
15
- /ENTRY:mainCRTStartup
16
- )
+ if(MSVC)
+ set(subsystem $<IF:$<BOOL:$<CONFIG:Debug>>,CONSOLE,WINDOWS>)
+ target_link_options(${PROJECT_NAME} PRIVATE
+ /SUBSYSTEM:${subsystem}
+ /ENTRY:mainCRTStartup
+ )
17
+ endif()
18
endif()
0 commit comments