From ba6e920034d9e1ac9e6bd319081d79069c99d680 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Tue, 16 Oct 2018 15:01:33 -1000 Subject: [PATCH] Generate ApplicationReps.hpp in binary directory --- hecl/.gitignore | 1 - hecl/ApplicationTools.cmake | 3 +++ hecl/CMakeLists.txt | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hecl/.gitignore b/hecl/.gitignore index ff0ebdf01..f7e5c090f 100644 --- a/hecl/.gitignore +++ b/hecl/.gitignore @@ -1,3 +1,2 @@ DataSpecRegistry.hpp -include/hecl/ApplicationReps.hpp .DS_Store diff --git a/hecl/ApplicationTools.cmake b/hecl/ApplicationTools.cmake index 94f3d9b88..ca81e7d09 100644 --- a/hecl/ApplicationTools.cmake +++ b/hecl/ApplicationTools.cmake @@ -1,5 +1,8 @@ include_guard(GLOBAL) +file(RELATIVE_PATH REL_PATH ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_LIST_DIR}) +include_directories(${CMAKE_CURRENT_BINARY_DIR}/${REL_PATH}) + unset(HECL_APPLICATION_REPS_TARGETS_LIST CACHE) unset(HECL_APPLICATION_REPS_INCLUDES_LIST CACHE) unset(HECL_APPLICATION_PIPELINE_REPS_UNIVERSAL CACHE) diff --git a/hecl/CMakeLists.txt b/hecl/CMakeLists.txt index 7ff406a90..3a994e8a1 100644 --- a/hecl/CMakeLists.txt +++ b/hecl/CMakeLists.txt @@ -45,7 +45,7 @@ foreach(name ${HECL_APPLICATION_STAGE_REPS}) set(HECL_APPLICATION_STAGE_REPS_LOCAL "${HECL_APPLICATION_STAGE_REPS_LOCAL}STAGES_${name}(P, S) \\\n") endforeach() -configure_file(include/hecl/ApplicationReps.hpp.in ${CMAKE_CURRENT_SOURCE_DIR}/include/hecl/ApplicationReps.hpp @ONLY) +configure_file(include/hecl/ApplicationReps.hpp.in ApplicationReps.hpp @ONLY) set(ATHENA_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/extern/athena/include) set(ATHENA_INCLUDE_DIR ${ATHENA_INCLUDE_DIR} PARENT_SCOPE)