mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 17:59:08 +08:00
20 lines
654 B
Diff
20 lines
654 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 32f0332..4cec80c 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -65,12 +65,12 @@ else()
|
|
target_compile_options(wolfmqtt PUBLIC ${WOLFSSL_CFLAGS_OTHER})
|
|
else()
|
|
# For support with vcpkg
|
|
- find_package(wolfssl CONFIG)
|
|
+ find_package(wolfssl CONFIG REQUIRED)
|
|
if (wolfssl_FOUND)
|
|
target_compile_definitions(wolfmqtt PUBLIC
|
|
"ENABLE_MQTT_TLS"
|
|
)
|
|
- target_link_libraries(wolfmqtt PUBLIC wolfssl)
|
|
+ target_link_libraries(wolfmqtt PUBLIC wolfssl::wolfssl)
|
|
endif()
|
|
endif()
|
|
endif()
|