Skip to content
Snippets Groups Projects
Commit b0c629e3 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

SW-516: made lofar_find_package(Boost REQUIRED COMPONENTS python) work on ubuntu

parent 1e17e6a6
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,7 @@ if("${Boost_FIND_COMPONENTS}" MATCHES "python") ...@@ -70,7 +70,7 @@ if("${Boost_FIND_COMPONENTS}" MATCHES "python")
Boost_FIND_COMPONENTS "${Boost_FIND_COMPONENTS}") Boost_FIND_COMPONENTS "${Boost_FIND_COMPONENTS}")
else(APPLE) else(APPLE)
if(EXISTS "/etc/debian_version") if(EXISTS "/etc/debian_version")
string(REPLACE "python" "python-py${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}" Boost_FIND_COMPONENTS "${Boost_FIND_COMPONENTS}") string(REPLACE "python" "python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}" Boost_FIND_COMPONENTS "${Boost_FIND_COMPONENTS}")
else(EXISTS "/etc/debian_version") else(EXISTS "/etc/debian_version")
string(REPLACE "python" "python3" Boost_FIND_COMPONENTS "${Boost_FIND_COMPONENTS}") string(REPLACE "python" "python3" Boost_FIND_COMPONENTS "${Boost_FIND_COMPONENTS}")
endif(EXISTS "/etc/debian_version") endif(EXISTS "/etc/debian_version")
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
lofar_package(pytools 1.0 DEPENDS Common) lofar_package(pytools 1.0 DEPENDS Common)
include(LofarFindPackage) include(LofarFindPackage)
lofar_find_package(Boost REQUIRED COMPONENTS python)
lofar_find_package(Python 3.4 REQUIRED) lofar_find_package(Python 3.4 REQUIRED)
lofar_find_package(Boost REQUIRED COMPONENTS python)
add_subdirectory(include/pytools) add_subdirectory(include/pytools)
add_subdirectory(src) add_subdirectory(src)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment