Skip to content

Commit

Permalink
[RF] Include gsl_integration.h in RooFitMore instead of copy-pasting
Browse files Browse the repository at this point in the history
Include `gsl_integration.h` in RooFitMore instead of copy-pasting code
from gsl. The linking is done in the same was as in
`math/mathmore/CMakeLists.txt`.

This should add no additional dependency compilcations, because
RooFitMore already linked against MathMore, which requires GSL to be
present.
  • Loading branch information
guitargeek committed Sep 21, 2023
1 parent 6627da7 commit 85a962f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 444 deletions.
5 changes: 5 additions & 0 deletions roofit/roofitmore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,14 @@ ROOT_STANDARD_LIBRARY_PACKAGE(RooFitMore
RIO
MathCore
Foam
BUILTINS
GSL
${EXTRA_DICT_OPTS}
)

target_include_directories(RooFitMore SYSTEM PRIVATE ${GSL_INCLUDE_DIR})
target_link_libraries(RooFitMore PRIVATE ${GSL_LIBRARIES})

# For recent clang, this can facilitate auto-vectorisation.
# In RooFit, the errno side effect is not needed, anyway:
if(NOT MSVC)
Expand Down
Loading

0 comments on commit 85a962f

Please sign in to comment.