@@ -10,3 +10,76 @@ index d34d930d..b69f81c7 100644
1010
1111 #include "Framework/ConditionsObject.h"
1212 #include "Framework/Exception/Exception.h"
13+ diff --git a/DetDescr/CMakeLists.txt b/DetDescr/CMakeLists.txt
14+ --- a/DetDescr/CMakeLists.txt
15+ +++ b/DetDescr/CMakeLists.txt
16+ @@ -17,32 +17,27 @@
17+ option(BUILD_DETECTORID_BINDINGS "Build the python bindings for the the DetDescr/DetectorID components" ON)
18+ if(BUILD_DETECTORID_BINDINGS)
19+ + cmake_policy(SET CMP0167 NEW)
20+ find_package(Python COMPONENTS Development)
21+
22+ - message("Looking for libboost_python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}")
23+ - find_package(Boost QUIET COMPONENTS python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR})
24+ + message("Looking for libboost_python${Python_VERSION_MAJOR}${Python_VERSION_MINOR}")
25+ + find_package(Boost QUIET COMPONENTS python${Python_VERSION_MAJOR}${Python_VERSION_MINOR})
26+ # libboost_python3 style libraries
27+ if (NOT Boost_FOUND)
28+ - message("Looking for libboost_python${PYTHON_VERSION_MAJOR}")
29+ - find_package(Boost QUIET COMPONENTS python${PYTHON_VERSION_MAJOR})
30+ + message("Looking for libboost_python${Python_VERSION_MAJOR}")
31+ + find_package(Boost QUIET COMPONENTS python${Python_VERSION_MAJOR})
32+ endif()
33+
34+ - # libboost_python style libraries
35+ - if (NOT Boost_FOUND)
36+ - message("Looking for libboost_python")
37+ - find_package(Boost QUIET COMPONENTS system thread python)
38+ - endif()
39+ -
40+ # libboost_python-py36 style libraries
41+ if (NOT Boost_FOUND)
42+ - message("Looking for libboost_python-py${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}")
43+ - find_package(Boost QUIET COMPONENTS python-py${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR})
44+ + message("Looking for libboost_python-py${Python_VERSION_MAJOR}${Python_VERSION_MINOR}")
45+ + find_package(Boost QUIET COMPONENTS python-py${Python_VERSION_MAJOR}${Python_VERSION_MINOR})
46+ endif()
47+
48+ # libboost_python3-py36 style libraries
49+ if (NOT Boost_FOUND)
50+ - message("Looking for libboost_python3-py${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}")
51+ - find_package(Boost QUIET COMPONENTS python3-py${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR})
52+ + message("Looking for libboost_python3-py${Python_VERSION_MAJOR}${Python_VERSION_MINOR}")
53+ + find_package(Boost QUIET COMPONENTS python3-py${Python_VERSION_MAJOR}${Python_VERSION_MINOR})
54+ endif()
55+
56+ # Nothing worked
57+ if (NOT Boost_FOUND)
58+ diff --git a/Framework/CMakeLists.txt b/Framework/CMakeLists.txt
59+ --- a/Framework/CMakeLists.txt
60+ +++ b/Framework/CMakeLists.txt
61+ @@ -23,11 +23,11 @@
62+ # Search for the Python3 library
63+ find_package(Python3 COMPONENTS Interpreter Development)
64+
65+ + cmake_policy(SET CMP0167 NEW)
66+ # Search for Boost
67+ find_package(
68+ Boost REQUIRED
69+ - COMPONENTS system
70+ - log
71+ + COMPONENTS log
72+ filesystem
73+ thread
74+ chrono
75+ diff --git a/Hcal/src/Hcal/HcalClusterProducer.cxx b/Hcal/src/Hcal/HcalClusterProducer.cxx
76+ --- a/Hcal/src/Hcal/HcalClusterProducer.cxx
77+ +++ b/Hcal/src/Hcal/HcalClusterProducer.cxx
78+ @@ -2,6 +2,7 @@
79+
80+ #include <exception>
81+ #include <iostream>
82+ + #include <list>
83+
84+ #include "Hcal/MyClusterWeight.h"
85+ #include "Hcal/TemplatedClusterFinder.h"
0 commit comments