diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-12-28 01:22:41 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-12-28 01:22:41 +0300 |
commit | 031bbf7fa1c00a16d7ed1c0c450821b9818b8529 (patch) | |
tree | 020bb3e4f122fb8184d413bfb7c87f7decfd59b8 | |
parent | CMakeLists.txt: code style (diff) | |
download | aes-tools-031bbf7fa1c00a16d7ed1c0c450821b9818b8529.tar.gz aes-tools-031bbf7fa1c00a16d7ed1c0c450821b9818b8529.zip |
remove dynamic dependency on libwinpthread-1.dll
For some reason, i686-w64-mingw32-g++ 5.4.0 adds a dynamic dependency on
libwinpthread-1.dll even when `-static-libgcc -static-libstdc++` is set.
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 618dc25..a2838f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,9 +18,7 @@ function(use_static_runtime target) elseif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) get_target_property(type ${target} TYPE) if(type STREQUAL EXECUTABLE) - target_link_libraries(${target} PRIVATE - -static-libgcc - -static-libstdc++) + target_link_libraries(${target} PRIVATE -static) endif() endif() endif() |