Skip to content

Commit 1b25a7f

Browse files
committed
Bug fix in the discovery of boost_python package name
1 parent 38d3223 commit 1b25a7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ find_package(CUDA REQUIRED)
5050
find_package(OpenCV 3 REQUIRED)
5151
find_package(Doxygen)
5252

53+
### for python 3 use this:
5354
set(WITH_PYTHON3 False CACHE BOOL "Use Python3")
55+
set(WITH_SYSTEMBOOST True CACHE BOOL "Boost from deb package")
5456

55-
### for python 3 use this:
56-
find_package(Boost 1.63.0)
57-
if( Boost_FOUND ) #new syntax is needed
57+
if( NOT WITH_SYSTEMBOOST) #boost package syntax
5858
if( WITH_PYTHON3 )
5959
find_package(Boost COMPONENTS system python3 REQUIRED)
6060
else()

0 commit comments

Comments
 (0)