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 <hallotpierre@gmail.com>
This commit is contained in:
Pierre Hallot 2020-12-07 10:30:46 +01:00
parent ddb0f21ab5
commit 57d2818a3d
No known key found for this signature in database
GPG Key ID: 43BB1CDDD7376D80

View File

@ -10,7 +10,7 @@ cmake_policy(SET CMP0042 NEW)
project(mosquitto) project(mosquitto)
set (VERSION 2.0.2) 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}\") add_definitions (-DCMAKE -DVERSION=\"${VERSION}\")