Skip to content

Commit f1e6a1e

Browse files
committed
Use add_link_options for clang linker on windows
1 parent 0da3765 commit f1e6a1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngscopeclient/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ endif()
2424

2525
if(WIN32)
2626
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
27-
add_compile_options(-Wl,--subsystem,windows)
27+
add_link_options(/SUBSYSTEM:WINDOWS)
2828
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
2929
add_compile_options(-mwindows)
3030
endif()

0 commit comments

Comments
 (0)