Skip to content

Commit

Permalink
Added library alias in demo CMake files, did not build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ooonak authored and JaylinYu committed Aug 27, 2023
1 parent c5a6567 commit cf99c88
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion demo/mqtt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ find_package(nng CONFIG REQUIRED)
find_package(Threads)

add_executable(mqtt_client mqtt_client.c)
target_link_libraries(mqtt_client nng)
target_link_libraries(mqtt_client nng::nng)
target_link_libraries(mqtt_client ${CMAKE_THREAD_LIBS_INIT})

if(NNG_ENABLE_TLS)
Expand Down
2 changes: 1 addition & 1 deletion demo/mqttv5/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ find_package(nng CONFIG REQUIRED)
find_package(Threads)

add_executable(mqttv5_client mqttv5_client.c)
target_link_libraries(mqttv5_client nng)
target_link_libraries(mqttv5_client nng::nng)
target_link_libraries(mqttv5_client ${CMAKE_THREAD_LIBS_INIT})

if(NNG_ENABLE_TLS)
Expand Down
2 changes: 1 addition & 1 deletion demo/quic_mqtt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if(OPENSSL_FOUND)
target_link_libraries(quic_client OpenSSL::Crypto OpenSSL::SSL)
endif()

target_link_libraries(quic_client nng msquic pthread)
target_link_libraries(quic_client nng::nng msquic pthread)
target_compile_definitions(quic_client PRIVATE NNG_ELIDE_DEPRECATED)

if (NNG_ENABLE_SQLITE)
Expand Down
2 changes: 1 addition & 1 deletion demo/quic_mqttv5/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if(OPENSSL_FOUND)
target_link_libraries(quic_client_v5 OpenSSL::Crypto OpenSSL::SSL)
endif()

target_link_libraries(quic_client_v5 nng msquic pthread)
target_link_libraries(quic_client_v5 nng::nng msquic pthread)
target_compile_definitions(quic_client_v5 PRIVATE NNG_ELIDE_DEPRECATED)

if (NNG_ENABLE_SQLITE)
Expand Down

0 comments on commit cf99c88

Please sign in to comment.