File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -459,7 +459,6 @@ ROOT_STANDARD_LIBRARY_PACKAGE(RooFitCore
459459 RIO
460460 MathCore
461461 Foam
462- Smatrix
463462 ${EXTRA_DEPENDENCIES}
464463 LINKDEF
465464 inc/LinkDef.h
@@ -490,6 +489,13 @@ endif()
490489
491490target_include_directories (RooFitCore PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /res>)
492491
492+ # The SMatrix package is header-only, but it's only exposed via the Smatrix
493+ # target, which is a shared library that also includes the dictionaries. For
494+ # RooFit, we are not interested in them, and want to avoid a dependency of the
495+ # RooFitCore library on the Smatrix dictionary library. Therefore, we just add
496+ # the include path.
497+ target_include_directories (RooFitCore PRIVATE $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR} /math/smatrix/inc>)
498+
493499# For recent clang, this can facilitate auto-vectorisation.
494500# In RooFit, the errno side effect is not needed, anyway:
495501if ("${CMAKE_CXX_COMPILER_ID} " MATCHES "Clang" )
You can’t perform that action at this time.
0 commit comments