Skip to content

Commit

Permalink
MNT: Update CMake modules path relative to script
Browse files Browse the repository at this point in the history
Without this, dxtbx did not work as a subdirectory in
a larger CMakeLists project.
  • Loading branch information
ndevenish committed Jul 27, 2023
1 parent 69169ff commit 0a068b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a068b5

Please sign in to comment.