aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/mosquitto/mosquitto-config.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/mosquitto/mosquitto-config.cmake')
-rw-r--r--vcpkg/ports/mosquitto/mosquitto-config.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/vcpkg/ports/mosquitto/mosquitto-config.cmake b/vcpkg/ports/mosquitto/mosquitto-config.cmake
new file mode 100644
index 0000000..e0f0027
--- /dev/null
+++ b/vcpkg/ports/mosquitto/mosquitto-config.cmake
@@ -0,0 +1,12 @@
+message(AUTHOR_WARNING "find_package(${PACKAGE_NAME}) is deprecated.\n${usage}")
+
+include(CMakeFindDependencyMacro)
+find_dependency(unofficial-mosquitto CONFIG)
+
+# legacy, ported from wrapper
+find_path(MOSQUITTO_INCLUDE_DIR mosquitto.h)
+set(MOSQUITTO_INCLUDE_DIRS ${MOSQUITTO_INCLUDE_DIR})
+
+# legacy, both vars included the C++ target
+set(MOSQUITTO_LIBRARIES unofficial::mosquitto::mosquittopp)
+set(MOSQUITTOPP_LIBRARIES unofficial::mosquitto::mosquittopp)