Skip to content

Commit 35685f7

Browse files
committed
fix cmake error on mac
1 parent b3b4d1d commit 35685f7

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

cmake/ReadoutCardDependencies.cmake

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,21 @@ o2_define_bucket(
8989
)
9090

9191
# Build the variable name for the path to boost python
92-
string(TOUPPER ${boost_python_component} upper)
93-
set(temp "Boost_${upper}_LIBRARY")
92+
set(boost_python_dep "")
93+
if(boost_python_component)
94+
if (boost_python_component NOT STREQUAL "")
95+
string(TOUPPER ${boost_python_component} upper)
96+
set(temp "Boost_${upper}_LIBRARY")
97+
set(boost_python_dep ${${temp}})
98+
endif()
99+
endif()
94100

95101
o2_define_bucket(
96102
NAME
97103
o2_readoutcard_python
98104

99105
DEPENDENCIES
100-
${${temp}}
106+
${boost_python_dep}
101107
${PYTHON_LIBRARIES}
102108

103109
SYSTEMINCLUDE_DIRECTORIES

0 commit comments

Comments
 (0)