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 bbfa607 + 6c69444 commit 9b81087Copy full SHA for 9b81087
contrib/buildsystems/CMakeLists.txt
@@ -740,7 +740,13 @@ if(WIN32)
740
endif()
741
742
add_executable(headless-git ${CMAKE_SOURCE_DIR}/compat/win32/headless.c)
743
- 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")
744
+ target_link_options(headless-git PUBLIC -municode -Wl,-subsystem,windows)
745
+ elseif(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
746
+ target_link_options(headless-git PUBLIC /NOLOGO /ENTRY:wWinMainCRTStartup /SUBSYSTEM:WINDOWS)
747
+ else()
748
+ message(FATAL_ERROR "Unhandled compiler: ${CMAKE_C_COMPILER_ID}")
749
+ endif()
750
elseif(UNIX)
751
target_link_libraries(common-main pthread rt)
752
0 commit comments