Skip to content

Commit 6185687

Browse files
committed
Fix compatibility with boost 1.67.0
1 parent e3e8108 commit 6185687

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,17 @@ find_package(Boost ${MINIMUM_BOOST_VERSION}
204204
log_setup
205205
regex
206206
serialization
207-
python
208207
signals
209208
system
210209
thread
211210
REQUIRED)
211+
if(${Boost_VERSION} GREATER 106699) # boost >= 1.67
212+
find_package(Boost COMPONENTS python27 REQUIRED)
213+
set(Boost_PYTHON_LIBRARY ${Boost_PYTHON27_LIBRARY})
214+
else()
215+
find_package(Boost COMPONENTS python REQUIRED)
216+
endif()
217+
212218
find_package(ZLIB REQUIRED)
213219
if(NOT BUILD_HEADLESS)
214220
find_package(Freetype REQUIRED)

0 commit comments

Comments
 (0)