Skip to content

Commit 8ca0b15

Browse files
committed
[RF] Fix visibility of the res/ directories.
After removing some CMake header cheating code, the headers in res/ became invisible across RooFit packages. Here, they are added to the interface of the respective RooFit targets, but only for the BUILD_INTERFACE. This is OK as long as these headers will only be included in .cxx of RooFit.
1 parent 8db0032 commit 8ca0b15

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

roofit/batchcompute/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ ROOT_LINKER_LIBRARY(RooBatchCompute
77
Imt
88
)
99

10+
target_include_directories(RooBatchCompute INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/res>)
11+
1012
if(vdt OR builtin_vdt)
1113
target_link_libraries(RooBatchCompute PUBLIC VDT)
1214
endif()

roofit/common/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ ROOT_LINKER_LIBRARY(RooFitCommon
1212
DEPENDENCIES
1313
Core
1414
)
15+
16+
target_include_directories(RooFitCommon PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/res/>)

0 commit comments

Comments
 (0)