We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7355678 commit c119d09Copy full SHA for c119d09
1 file changed
CMakeLists.txt
@@ -259,7 +259,13 @@ if(ENABLE_SSH_TLS)
259
260
# dependencies - libcurl
261
find_package(CURL 7.30.0 REQUIRED)
262
- target_link_libraries(netconf2 CURL::libcurl)
+ if(TARGET CURL::libcurl)
263
+ target_link_libraries(netconf2 CURL::libcurl)
264
+ else()
265
+ target_link_libraries(netconf2 ${CURL_LIBRARIES})
266
+ list(APPEND CMAKE_REQUIRED_LIBRARIES ${CURL_LIBRARY})
267
+ include_directories(${CURL_INCLUDE_DIRS})
268
+ endif()
269
270
# crypt (if not found, assume no library needs to be linked)
271
if(${CMAKE_SYSTEM_NAME} MATCHES "QNX")
0 commit comments