Skip to content

Commit

Permalink
Make it compile again
Browse files Browse the repository at this point in the history
  • Loading branch information
guitargeek committed Oct 1, 2024
1 parent 52ad192 commit 3e8d57f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/roofitcore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ target_link_libraries(RooFitCore PUBLIC
MathCore
Foam
Smatrix
TestSupport
${EXTRA_DEPENDENCIES}
)

Expand Down
8 changes: 6 additions & 2 deletions src/roofitcore/inc/RooFit/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
// memory safe.
// #define ROOFIT_MEMORY_SAFE_INTERFACES

#include <ROOT/RConfig.hxx>

#include <memory>

namespace RooFit {
Expand Down Expand Up @@ -59,8 +61,10 @@ OwningPtr<T> makeOwningPtr(std::unique_ptr<U> &&ptr)

} // namespace RooFit

#ifndef R__DEPRECATED
# define R__DEPRECATED(X, Y, Z)
// Define required deprecation macros if the ROOT version that we build RooFit
// against doesn't have it.
#ifndef _R__DEPRECATED_636
# define _R__DEPRECATED_636(REASON) _R__DEPRECATED_LATER(REASON)
#endif

#endif
7 changes: 2 additions & 5 deletions src/testsupport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@
set(libname TestSupport)
set(header_dir ROOT/)

add_library(${libname} OBJECT src/TestSupport.cxx)
target_include_directories(${libname} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc/>
$<INSTALL_INTERFACE:./>
)
add_library(${libname} SHARED src/TestSupport.cxx)
target_include_directories(${libname} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/inc)
target_link_libraries(${libname} PUBLIC Core gtest)

# Installation of header and library:
Expand Down

0 comments on commit 3e8d57f

Please sign in to comment.