Skip to content
Snippets Groups Projects
Verified Commit 498bc4df authored by Tobias Triffterer's avatar Tobias Triffterer :house_with_garden:
Browse files

Add Version Switch for ROOT

The interface of RooDataHist was improved in ROOT 6.24 and the old way of
querying the content of a bin was deprecated.

Therefore, a macro is added to compile code using the new interface on a
ROOT version ≥ 6.24 and do it the old way otherwise.
parent 6b13d267
No related branches found
No related tags found
No related merge requests found
Pipeline #3054 passed with stage
in 21 seconds
...@@ -98,3 +98,9 @@ target_link_libraries(fp311online PUBLIC Qt5::Core Qt5::Gui Qt5::Widgets ROOT::H ...@@ -98,3 +98,9 @@ target_link_libraries(fp311online PUBLIC Qt5::Core Qt5::Gui Qt5::Widgets ROOT::H
set_property(TARGET fp311online PROPERTY POSITION_INDEPENDENT_CODE ON) set_property(TARGET fp311online PROPERTY POSITION_INDEPENDENT_CODE ON)
set_property(TARGET fp311online PROPERTY CXX_VISIBILITY_PRESET hidden) set_property(TARGET fp311online PROPERTY CXX_VISIBILITY_PRESET hidden)
set_property(TARGET fp311online PROPERTY VISIBILITY_INLINES_HIDDEN ON) set_property(TARGET fp311online PROPERTY VISIBILITY_INLINES_HIDDEN ON)
if (${ROOT_VERSION} VERSION_GREATER_EQUAL 6.24)
# The interface of RooDataHist was improved in ROOT 6.24 and the old way of
# querying the content of a bin was deprecated.
target_compile_definitions(fp311online PUBLIC ROOT_6_24_OR_NEWER)
endif (${ROOT_VERSION} VERSION_GREATER_EQUAL 6.24)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment