diff --git a/CMakeLists.txt b/CMakeLists.txt index c1edeca..c33f8ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -397,7 +397,7 @@ set(GLOBAL_HEADERS ${PROJECT_NAME}/LRCallbackDS ${PROJECT_NAME}/LRDataManager ${PROJECT_NAME}/LRScriptManager - ${CMAKE_BINARY_DIR}/limereport/version.h + ${CMAKE_CURRENT_BINARY_DIR}/limereport/version.h ) set(PROJECT_NAME ${PROJECT_NAME}-qt${QT_VERSION_MAJOR}) @@ -470,7 +470,7 @@ target_include_directories( ${PROJECT_NAME} PRIVATE limereport/scripteditor ) target_include_directories( ${PROJECT_NAME} PUBLIC - ${CMAKE_BINARY_DIR}/limereport ) + ${CMAKE_CURRENT_BINARY_DIR}/limereport ) target_include_directories( ${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include) diff --git a/cmake/modules/GenerateVersionHeader.cmake b/cmake/modules/GenerateVersionHeader.cmake index ed62702..63267cc 100644 --- a/cmake/modules/GenerateVersionHeader.cmake +++ b/cmake/modules/GenerateVersionHeader.cmake @@ -22,7 +22,7 @@ if(NOT DEFINED GIT_VERSION) endif() configure_file( - ${CMAKE_SOURCE_DIR}/limereport/version.h.in - ${CMAKE_BINARY_DIR}/limereport/version.h + ${CMAKE_CURRENT_SOURCE_DIR}/limereport/version.h.in + ${CMAKE_CURRENT_BINARY_DIR}/limereport/version.h @ONLY)