]> git.ipfire.org Git - thirdparty/curl.git/commit
cmake: correctly handle linker flags for static libs
authorTobias Hieta <tobias@plex.tv>
Tue, 10 Nov 2020 09:45:31 +0000 (10:45 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 10 Nov 2020 22:41:29 +0000 (23:41 +0100)
commit760e854348196d0c62afc7a5b023c62eced45b92
tree660e7207752d79ef7b33289b13c14211b43b22f3
parentfd5f35ef0b5635fae2bc39335d6339c96b843b33
cmake: correctly handle linker flags for static libs

curl CMake was setting the the EXE flags for static libraries which made
the /manifest:no flag ended up when linking the static library, which is
not a valid flag for lib.exe or llvm-lib.exe and caused llvm-lib to exit
with an error.

The better way to handle this is to make sure that we pass the correct
linker flags to CMAKE_STATIC_LINKER_FLAGS instead.

Reviewed-by: Jakub Zakrzewski
Closes #6195
CMakeLists.txt
lib/CMakeLists.txt