Skip to content

Commit

Permalink
propagate JANA version to CPP, like we do for Acts
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed Nov 20, 2024
1 parent 8384afe commit c894cc2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmake/jana_plugin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ macro(plugin_add _name)
PROPERTIES PREFIX ""
OUTPUT_NAME "${_name}"
SUFFIX ".so")
target_compile_definitions(
${PLUGIN_NAME}_plugin
PRIVATE "JANA_VERSION_MAJOR=${JANA_VERSION_MAJOR}"
"JANA_VERSION_MINOR=${JANA_VERSION_MINOR}"
"JANA_VERSION_PATCH=${JANA_VERSION_PATCH}")
target_link_libraries(${_name}_plugin ${JANA_LIB} podio::podio
podio::podioRootIO spdlog::spdlog fmt::fmt)
target_link_libraries(${_name}_plugin Microsoft.GSL::GSL)
Expand All @@ -82,6 +87,11 @@ macro(plugin_add _name)
PROPERTIES PREFIX "lib"
OUTPUT_NAME "${_name}"
SUFFIX ${suffix})
target_compile_definitions(
${PLUGIN_NAME}_library
PRIVATE "JANA_VERSION_MAJOR=${JANA_VERSION_MAJOR}"
"JANA_VERSION_MINOR=${JANA_VERSION_MINOR}"
"JANA_VERSION_PATCH=${JANA_VERSION_PATCH}")

target_include_directories(
${_name}_library
Expand Down

0 comments on commit c894cc2

Please sign in to comment.