From 57d2818a3d84369e77fe39babc452f19ff5155cf Mon Sep 17 00:00:00 2001 From: Pierre Hallot Date: Mon, 7 Dec 2020 10:30:46 +0100 Subject: [PATCH] Fix appending CMake module path to existing path The code would simply append the folder with no separator, resulting in an invalid path if the variable was not empty. Now properly append it. Signed-off-by: Pierre Hallot --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a7910ae9..f430eeeb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ cmake_policy(SET CMP0042 NEW) project(mosquitto) set (VERSION 2.0.2) -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/") +list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/") add_definitions (-DCMAKE -DVERSION=\"${VERSION}\")