Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

* FIX [demo/quic] Fix the error in building quic demo. #227

Merged
merged 1 commit into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions demo/quic_mqtt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ cmake_minimum_required(VERSION 3.13)

project(quic_client)

if (BUILD_DEMO)
else ()
# Call this from your own project's makefile.
find_package(nng CONFIG REQUIRED)
find_package(nng CONFIG REQUIRED)
endif (BUILD_DEMO)

find_package(Threads)
find_package(msquic)
Expand All @@ -35,7 +38,7 @@ if(OPENSSL_FOUND)
target_link_libraries(quic_client OpenSSL::Crypto OpenSSL::SSL)
endif()

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

if (NNG_ENABLE_SQLITE)
Expand Down
7 changes: 5 additions & 2 deletions demo/quic_mqttv5/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ cmake_minimum_required(VERSION 3.13)

project(quic_clientv5)

if (BUILD_DEMO)
else ()
# Call this from your own project's makefile.
find_package(nng CONFIG REQUIRED)
find_package(nng CONFIG REQUIRED)
endif (BUILD_DEMO)

find_package(Threads)
find_package(msquic)
Expand All @@ -35,7 +38,7 @@ if(OPENSSL_FOUND)
target_link_libraries(quic_client_v5 OpenSSL::Crypto OpenSSL::SSL)
endif()

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

if (NNG_ENABLE_SQLITE)
Expand Down
Loading