cmake: save a line with CMAKE_C_IMPLICIT_LINK_DIRECTORIES exclusion
Also mind the quotes:
https://github.com/curl/curl/pull/16233#issuecomment-2642603412
Follow-up to f72b848092 #16233
Closes #16243
This commit is contained in:
parent
a5f120df06
commit
9b3c4b08d4
@ -2240,7 +2240,7 @@ if(NOT CURL_DISABLE_INSTALL)
|
||||
endforeach()
|
||||
|
||||
# Avoid getting unnecessary -L options for known system directories.
|
||||
set(_sys_libdirs "")
|
||||
set(_sys_libdirs "${CMAKE_C_IMPLICIT_LINK_DIRECTORIES}")
|
||||
foreach(_libdir IN LISTS CMAKE_SYSTEM_PREFIX_PATH)
|
||||
if(_libdir MATCHES "/$")
|
||||
string(APPEND _libdir "lib")
|
||||
@ -2257,7 +2257,6 @@ if(NOT CURL_DISABLE_INSTALL)
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
list(APPEND _sys_libdirs ${CMAKE_C_IMPLICIT_LINK_DIRECTORIES})
|
||||
|
||||
foreach(_libdir IN LISTS _custom_libdirs CURL_LIBDIRS)
|
||||
if(NOT CMAKE_VERSION VERSION_LESS 3.20)
|
||||
@ -2271,7 +2270,7 @@ if(NOT CURL_DISABLE_INSTALL)
|
||||
|
||||
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 _custom_libs CURL_LIBS)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user