Skip to content

Commit

Permalink
fix: #16 use CMAKE_CURRENT_SOURCE_DIR instead of CMAKE_SOURCE_DIR for…
Browse files Browse the repository at this point in the history
… cmake includes

This has the benefit of working better and more reliably when the project
is included in another master project. We can guarantee that the includes
still come from the sub-project as expected.
  • Loading branch information
abdes committed Sep 16, 2022
1 parent b8bd378 commit 4ac6928
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 @@ -15,7 +15,7 @@ cmake_minimum_required(VERSION 3.14)
# List of directories specifying a search path for CMake modules to be loaded by
# the the include() or find_package() commands before checking the default
# modules that come with CMake.
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

# ------------------------------------------------------------------------------
# Project description and (meta) information
Expand Down

0 comments on commit 4ac6928

Please sign in to comment.