diff options
author | Jakub Zakrzewski <slither.jz@gmail.com> | 2022-12-02 16:22:32 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-12-02 23:42:40 +0100 |
commit | 52279c8e5db4c2d689f831fda17ff2aa9bde9f50 (patch) | |
tree | 8fb33172b7312d339d9e48e82fee3e7baff250c4 /CMakeLists.txt | |
parent | a4fd257c1b5afea27655b611fd1ee0819d402a9d (diff) | |
download | curl-52279c8e5db4c2d689f831fda17ff2aa9bde9f50.tar.gz |
CMake: fix build with `CURL_USE_GSSAPI`
CMAKE_*_LINKER_FLAGS must be a string but GSS_LINKER_FLAGS is a list, so
we need to replace semicolons with spaces when setting those.
Fixes #9017
Closes #1022
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ce03d4bda..091746b46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -851,6 +851,7 @@ if(CURL_USE_GSSAPI) include_directories(${GSS_INCLUDE_DIR}) link_directories(${GSS_LINK_DIRECTORIES}) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GSS_COMPILER_FLAGS}") + string(REPLACE ";" " " GSS_LINKER_FLAGS "${GSS_LINKER_FLAGS}") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${GSS_LINKER_FLAGS}") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GSS_LINKER_FLAGS}") set(CMAKE_STATIC_LINKER_FLAGS "${CMAKE_STATIC_LINKER_FLAGS} ${GSS_LINKER_FLAGS}") |