vcpkg/ports/wolfmqtt/cmake-patch.diff

20 lines
654 B
Diff
Raw Normal View History

2023-07-28 00:23:06 +08:00
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()