Skip to content

Commit

Permalink
Merge pull request kpu#360 from kkm000/patch-1
Browse files Browse the repository at this point in the history
Don't replace linker flags set by toolset and user
  • Loading branch information
kpu authored Nov 2, 2021
2 parents bbf4fc5 + fbb6da7 commit f01e12d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if (FORCE_STATIC)
endforeach(flag_var)
else (MSVC)
if (NOT CMAKE_C_COMPILER_ID MATCHES ".*Clang")
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++ -static")
endif ()
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
endif ()
Expand Down

0 comments on commit f01e12d

Please sign in to comment.