From 76c657db70c10c499146340c512d47ce59d5604e Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Thu, 26 Jan 2017 20:33:13 +0100 Subject: [PATCH] fix(cmake): Specify configure_file dest --- doc/CMakeLists.txt | 4 ++-- include/CMakeLists.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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)