From 3d9bd01bda3f45790867b9fe1264aba3368a391e Mon Sep 17 00:00:00 2001 From: fpagliughi Date: Sat, 15 Jun 2024 19:18:21 -0400 Subject: [PATCH] Sets the project version (CMP0048) policy for bundled builds to get rid of CMake warning --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d5ce1c8..1155844 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,6 +65,9 @@ if(PAHO_WITH_MQTT_C) set(PAHO_ENABLE_TESTING FALSE CACHE BOOL "No Paho C tests") set(PAHO_HIGH_PERFORMANCE TRUE CACHE BOOL "Paho C high performance") + # TODO: Remove this when the next Paho C update is released. + set(CMAKE_POLICY_DEFAULT_CMP0048 NEW) + add_subdirectory(${PROJECT_SOURCE_DIR}/externals/paho-mqtt-c) ## Alias namespace so that the full names can be used with the subdir.