Skip to content

Commit

Permalink
always link against CURL even with system (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Gehorsam authored Jan 31, 2024
1 parent 98cce48 commit 719b2f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions impl/httpCurl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)

add_library(nakama-impl-http-libcurl OBJECT ${srcs})

if (NOT BUILD_CURL_HTTP_SYSTEM)
find_package(CURL CONFIG REQUIRED)

target_link_libraries(nakama-impl-http-libcurl
PUBLIC CURL::libcurl
)
endif()
find_package(CURL CONFIG REQUIRED)

target_link_libraries(nakama-impl-http-libcurl
PUBLIC CURL::libcurl
)

target_link_libraries(nakama-impl-http-libcurl
PUBLIC nakama-api-proto nakama::sdk-interface
Expand Down
2 changes: 1 addition & 1 deletion impl/wsWslay/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ target_include_directories(nakama-impl-ws-wslay INTERFACE
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>")

if (BUILD_CURL_IO AND NOT BUILD_CURL_IO_SYSTEM)
if (BUILD_CURL_IO OR BUILD_CURL_IO_SYSTEM)
find_package(CURL CONFIG REQUIRED)
target_link_libraries(nakama-impl-ws-wslay PRIVATE CURL::libcurl)
endif()
Expand Down

0 comments on commit 719b2f5

Please sign in to comment.