diff options
author | Kenneth Heafield <kpu@users.noreply.github.com> | 2021-11-02 13:42:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-02 13:42:46 +0300 |
commit | f01e12d83c7fd03ebe6656e0ad6d73a3e022bd50 (patch) | |
tree | a49364d7469b676dc9ee5b990880076c7b05b02b | |
parent | bbf4fc511266c5d4515047055d7bdec659a6e158 (diff) | |
parent | fbb6da74a6e37609db5e9e879ecb4d6e947f0912 (diff) |
Merge pull request #360 from kkm000/patch-1
Don't replace linker flags set by toolset and user
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b482c50..4cd4476 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 () |