We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6aa72d7 + 3ef1026 commit f2dc37bCopy full SHA for f2dc37b
contrib/buildsystems/CMakeLists.txt
@@ -734,7 +734,13 @@ if(WIN32)
734
endif()
735
736
add_executable(headless-git ${CMAKE_SOURCE_DIR}/compat/win32/headless.c)
737
- target_link_options(headless-git PUBLIC /NOLOGO /ENTRY:wWinMainCRTStartup /SUBSYSTEM:WINDOWS)
+ if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
738
+ target_link_options(headless-git PUBLIC -municode -Wl,-subsystem,windows)
739
+ elseif(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
740
+ target_link_options(headless-git PUBLIC /NOLOGO /ENTRY:wWinMainCRTStartup /SUBSYSTEM:WINDOWS)
741
+ else()
742
+ message(FATAL_ERROR "Unhandled compiler: ${CMAKE_C_COMPILER_ID}")
743
+ endif()
744
elseif(UNIX)
745
target_link_libraries(common-main pthread rt)
746
0 commit comments