From 5d388593ba2dc29eea021304d23870e19f60631b Mon Sep 17 00:00:00 2001 From: Roman Gilg Date: Wed, 21 Feb 2024 01:23:27 +0100 Subject: [PATCH] build: set module path from current source dir Just setting it to cmake/modules might not always work. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 92af385edd..754455e4c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0 find_package(ECM ${KF6_MIN_VERSION} REQUIRED NO_MODULE) # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked -set(CMAKE_MODULE_PATH cmake/modules ${ECM_MODULE_PATH}) +set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH}) include(FeatureSummary) include(WriteBasicConfigVersionFile)