diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 468ffb89..4b5b6028 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -80,8 +80,8 @@ endif() # Configure and install {{{ configure_file( - ${PROJECT_SOURCE_DIR}/doc/config.cmake - ${CMAKE_SOURCE_DIR}/doc/config + ${CMAKE_CURRENT_LIST_DIR}/doc/config.cmake + ${CMAKE_CURRENT_LIST_DIR}/doc/config ESCAPE_QUOTES @ONLY) install(FILES config diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 5a7d5ce9..bfbf5bff 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -30,8 +30,8 @@ execute_process(COMMAND git describe --tags --dirty=-git OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET) configure_file( - settings.hpp.cmake - settings.hpp + ${CMAKE_CURRENT_LIST_DIR}/settings.hpp.cmake + ${CMAKE_CURRENT_LIST_DIR}/settings.hpp ESCAPE_QUOTES @ONLY) set(libs ${libs} PARENT_SCOPE)