Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions roofit/roofitcore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,9 @@ if(fftw3)
target_link_libraries(RooFitCore PRIVATE FFTW::Double)
endif()

# Used to silence deprecation warnings when testing deprecated features
target_compile_definitions(RooFitCore PUBLIC ROOFIT_BUILDS_ITSELF)

target_include_directories(RooFitCore PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/res>)

# The SMatrix package is header-only, but it's only exposed via the Smatrix
Expand Down
12 changes: 9 additions & 3 deletions roofit/roofitcore/inc/RooGlobalFunc.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,15 @@ class EvalBackend : public RooCmdArg {
EvalBackend(std::string const &name);

static EvalBackend Legacy()
R__DEPRECATED(6, 44, "The legacy evaluation backend will be removed in ROOT 6.44. "
"Use the default \"cpu\" evaluation backend, i.e. simply don't pass any EvalBackend() "
"command argument.");
// Deprecation macro skipped when building RooFit itself, so we don't get
// warnings when unit testing deprecated features.
#ifndef ROOFIT_BUILDS_ITSELF
R__DEPRECATED(6, 44,
"The legacy evaluation backend will be removed in ROOT 6.44. "
"Use the default \"cpu\" evaluation backend, i.e. simply don't pass any EvalBackend() "
"command argument.")
#endif
;
static EvalBackend Cpu();
static EvalBackend Cuda();
static EvalBackend Codegen();
Expand Down
Loading