Skip to content

Commit

Permalink
fix libuv dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
bw-hro committed Jul 20, 2023
1 parent 586162c commit 977bae9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set(LIBS_FOR_EXAMPLES
nlohmann_json::nlohmann_json
nlohmann_json_schema_validator
ZLIB::ZLIB
$<IF:$<TARGET_EXISTS:libuv::uv_a>,libuv::uv_a,libuv::uv>
)

set(INCLUDES_FOR_EXAMPLES ../include ${UWEBSOCKETS_INCLUDE_DIRS} ${MDNS_INCLUDE_DIRS})
Expand All @@ -17,10 +18,6 @@ function(create_example_binary cpp_file)

target_include_directories("${target}" PRIVATE ${INCLUDES_FOR_EXAMPLES})
target_link_libraries("${target}" PRIVATE ${LIBS_FOR_EXAMPLES})

IF(WIN32)
target_link_libraries("${target}" PRIVATE uv_a)
ENDIF(WIN32)

IF(WT_WITH_SSL)
target_link_libraries("${target}" PRIVATE OpenSSL::SSL OpenSSL::Crypto)
Expand Down
5 changes: 1 addition & 4 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ target_link_libraries(tests PRIVATE nlohmann_json::nlohmann_json)
target_link_libraries(tests PRIVATE nlohmann_json_schema_validator)
target_link_libraries(tests PRIVATE ${LIBUSOCKETS_STATIC})
target_link_libraries(tests PRIVATE ZLIB::ZLIB)

IF(WIN32)
target_link_libraries(tests PRIVATE uv_a)
ENDIF(WIN32)
target_link_libraries(tests PRIVATE $<IF:$<TARGET_EXISTS:libuv::uv_a>,libuv::uv_a,libuv::uv>)

IF(WT_WITH_SSL)
target_link_libraries(tests PRIVATE OpenSSL::SSL OpenSSL::Crypto)
Expand Down

0 comments on commit 977bae9

Please sign in to comment.