1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00

cmake: add missing quotes

For consistent initialization for `_sys_libdirs` and just for consistent
formatting in the other case.

Ref: https://github.com/curl/curl/pull/16233#issuecomment-2642603412
Follow-up to 3de8731ef2 #1540
This commit is contained in:
Viktor Szakats
2025-02-07 12:55:45 +01:00
parent 3de8731ef2
commit 9642a96ef7

View File

@@ -211,7 +211,7 @@ endif()
set(_ldflags "")
# Avoid getting unnecessary -L options for known system directories.
set(_sys_libdirs ${CMAKE_C_IMPLICIT_LINK_DIRECTORIES})
set(_sys_libdirs "${CMAKE_C_IMPLICIT_LINK_DIRECTORIES}")
foreach(_libdir IN LISTS CMAKE_SYSTEM_PREFIX_PATH)
if(_libdir MATCHES "/$")
string(APPEND _libdir "lib")
@@ -241,7 +241,7 @@ endforeach()
set(_implicit_libs "")
if(NOT MINGW AND NOT UNIX)
set(_implicit_libs ${CMAKE_C_IMPLICIT_LINK_LIBRARIES})
set(_implicit_libs "${CMAKE_C_IMPLICIT_LINK_LIBRARIES}")
endif()
foreach(_lib IN LISTS _implicit_libs LIBSSH2_LIBS)