Skip to content

Commit 734843d

Browse files
awegrzynkostorr
authored andcommitted
CMake config should look for boost python component
1 parent a64feb2 commit 734843d

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

cmake/ReadoutCardConfig.cmake.in

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,22 @@ include(CMakeFindDependencyMacro)
66
set(Common_CMAKE_DIR @Common_DIR@)
77
set(InfoLogger_CMAKE_DIR @InfoLogger_DIR@)
88

9+
if(NOT APPLE)
10+
set(boost_python_component "python27")
11+
find_dependency(Python2 2.7 COMPONENTS Development REQUIRED)
12+
endif()
13+
14+
find_dependency(Boost
15+
COMPONENTS
16+
unit_test_framework
17+
filesystem
18+
system
19+
program_options
20+
${boost_python_component}
21+
REQUIRED
22+
)
923
find_dependency(Common CONFIG REQUIRED HINTS ${Common_CMAKE_DIR})
1024
find_dependency(InfoLogger CONFIG REQUIRED HINTS ${InfoLogger_CMAKE_DIR})
11-
find_dependency(Boost)
1225

1326
if(NOT TARGET AliceO2::ReadoutCard)
1427
include("${ReadoutCard_CMAKE_DIR}/ReadoutCardTargets.cmake")

0 commit comments

Comments
 (0)