Skip to content

Commit 6061375

Browse files
committed
#80 Set a minimum version for Paho C in the CMake file. Report the version found.
1 parent 487b357 commit 6061375

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#*******************************************************************************
66
# This is part of the Paho MQTT C++ client library.
77
#
8-
# Copyright (c) 2017-2025, Frank Pagliughi
8+
# Copyright (c) 2017-2026, Frank Pagliughi
99
# Copyright (c) 2016-2017, Guilherme Maciel Ferreira
1010
#
1111
# All rights reserved. This program and the accompanying materials
@@ -102,7 +102,10 @@ if(PAHO_WITH_MQTT_C)
102102
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
103103
)
104104
else()
105-
find_package(eclipse-paho-mqtt-c REQUIRED)
105+
find_package(eclipse-paho-mqtt-c 1.3.14 REQUIRED)
106+
if(eclipse-paho-mqtt-c_FOUND)
107+
message(STATUS "Found Paho C v${eclipse-paho-mqtt-c_VERSION}")
108+
endif()
106109
endif()
107110

108111
# --- System Details ---

0 commit comments

Comments
 (0)