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)