From 5fe73c0956eb1da4b2427c47806ab551f5c44e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Stolarczuk?= Date: Mon, 22 Jul 2024 12:09:53 +0200 Subject: [PATCH] [CMake] Fix helpers module include use full path, to omit potential conflicts in names with other modules, e.g. in other projects, which can use the same module name. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e84a45097..f3ae1292b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,8 @@ cmake_minimum_required(VERSION 3.14.0 FATAL_ERROR) set(UMF_CMAKE_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) list(APPEND CMAKE_MODULE_PATH "${UMF_CMAKE_SOURCE_DIR}/cmake") -include(helpers) +# Use full path of the helpers module (to omit potential conflicts with others) +include(${UMF_CMAKE_SOURCE_DIR}/cmake/helpers.cmake) # We use semver aligned version, set via git tags. We parse git output to # establih the version of UMF to be used in CMake, Win dll's, and within the