diff --git a/thirdparty/traccc/CMakeLists.txt b/thirdparty/traccc/CMakeLists.txt index 2974ac1eea5..1c9ce167b89 100644 --- a/thirdparty/traccc/CMakeLists.txt +++ b/thirdparty/traccc/CMakeLists.txt @@ -15,7 +15,12 @@ message(STATUS "Building traccc as part of the Acts project") set(TRACCC_VERSION "${_acts_traccc_version}") # Declare where to get traccc from. -FetchContent_Declare(traccc ${ACTS_TRACCC_SOURCE}) +FetchContent_Declare( + traccc + ${ACTS_TRACCC_SOURCE} + PATCH_COMMAND + patch -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/remove-json-include.diff +) set(ACTS_TRACCC_SCALARTYPE "double") diff --git a/thirdparty/traccc/remove-json-include.diff b/thirdparty/traccc/remove-json-include.diff new file mode 100644 index 00000000000..72a6303ae94 --- /dev/null +++ b/thirdparty/traccc/remove-json-include.diff @@ -0,0 +1,12 @@ +diff --git a/io/src/read_digitization_config.cpp b/io/src/read_digitization_config.cpp +index fbba17ae..defe89c5 100644 +--- a/io/src/read_digitization_config.cpp ++++ b/io/src/read_digitization_config.cpp +@@ -13,7 +13,6 @@ + // Acts include(s). + #include + #include +-#include + + // System include(s). + #include