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 cf58f9b + f142c66 commit 82df7ceCopy full SHA for 82df7ce
contrib/buildsystems/CMakeLists.txt
@@ -733,7 +733,13 @@ if(WIN32)
733
endif()
734
735
add_executable(headless-git ${CMAKE_SOURCE_DIR}/compat/win32/headless.c)
736
- 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")
737
+ target_link_options(headless-git PUBLIC -municode -Wl,-subsystem,windows)
738
+ elseif(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
739
+ target_link_options(headless-git PUBLIC /NOLOGO /ENTRY:wWinMainCRTStartup /SUBSYSTEM:WINDOWS)
740
+ else()
741
+ message(FATAL_ERROR "Unhandled compiler: ${CMAKE_C_COMPILER_ID}")
742
+ endif()
743
elseif(UNIX)
744
target_link_libraries(common-main pthread rt)
745
0 commit comments