Skip to content

Commit

Permalink
chore: update odd & build infrastructure (#1087)
Browse files Browse the repository at this point in the history
This PR updates to the standalone buildable ODD detector.

It adds the relevant preprocessor command.
  • Loading branch information
asalzburger committed Dec 2, 2021
1 parent 85e8d37 commit e979777
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Examples/Detectors/DD4hepDetector/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ add_library(
src/DD4hepGeometryService.cpp
src/DetUtils.cpp)

file(GLOB _odd "${CMAKE_SOURCE_DIR}/thirdparty/OpenDataDetector/factory/*")
file(GLOB _odd "${CMAKE_SOURCE_DIR}/thirdparty/OpenDataDetector/factory/tracker/*")
if(NOT _odd)
message(WARNING "The ODD directory seems not to be present. Did you run init the submodule?")
else()
target_compile_definitions(ActsExamplesDetectorDD4hep PUBLIC ODD_ACTS_EXTENSION)
endif()
target_sources(ActsExamplesDetectorDD4hep PUBLIC ${_odd})

Expand Down
2 changes: 1 addition & 1 deletion thirdparty/OpenDataDetector
Submodule OpenDataDetector updated from 2b333c to 7041ae

0 comments on commit e979777

Please sign in to comment.