From e5c68e00f013c76b7c8497606cb50ee39acdfbee Mon Sep 17 00:00:00 2001 From: Nicholas Devenish Date: Thu, 27 Jul 2023 14:52:33 +0100 Subject: [PATCH] MNT: Update CMake modules path relative to script Without this, dxtbx did not work as a subdirectory in a larger CMakeLists project. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c286d39e2..96c6b76d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.20 FATAL_ERROR) project(dxtbx LANGUAGES C CXX) # Add the included modules -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/") # General cmake environment configuration include(SetDefaultBuildRelWithDebInfo) # Default builds to release with debug info