Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
6ecdaa02
Commit
6ecdaa02
authored
6 years ago
by
Auke Klazema
Browse files
Options
Downloads
Patches
Plain Diff
SW-609
: Make CMake look for libboost_python3 if building with python3 dependency
parent
c391618b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMake/FindBoost.cmake
+3
-12
3 additions, 12 deletions
CMake/FindBoost.cmake
with
3 additions
and
12 deletions
CMake/FindBoost.cmake
+
3
−
12
View file @
6ecdaa02
...
@@ -63,18 +63,9 @@ if("${Boost_FIND_COMPONENTS}" MATCHES "python")
...
@@ -63,18 +63,9 @@ if("${Boost_FIND_COMPONENTS}" MATCHES "python")
find_package
(
Python
)
find_package
(
Python
)
if
(
PYTHON_FOUND
)
if
(
PYTHON_FOUND
)
if
(
PYTHON_VERSION_MAJOR GREATER 2
)
if
(
PYTHON_VERSION_MAJOR GREATER 2
)
# TODO: add support for CentOS7 here (name should be python3 there)
string
(
REPLACE
"python"
"python3"
if
(
APPLE
)
Boost_FIND_COMPONENTS
"
${
Boost_FIND_COMPONENTS
}
"
)
# On apple (homebrew), boost-python for python 3 is called boost-python3
endif
(
PYTHON_VERSION_MAJOR GREATER 2
)
string
(
REPLACE
"python"
"python3"
Boost_FIND_COMPONENTS
"
${
Boost_FIND_COMPONENTS
}
"
)
else
(
APPLE
)
# On ubuntu, boost-python for python 3 is called e.g. boost_python-py35
string
(
REPLACE
"python"
"python-py
${
PYTHON_VERSION_MAJOR
}${
PYTHON_VERSION_MINOR
}
"
Boost_FIND_COMPONENTS
"
${
Boost_FIND_COMPONENTS
}
"
)
endif
(
APPLE
)
endif
(
PYTHON_VERSION_MAJOR GREATER 2
)
else
(
PYTHON_FOUND
)
else
(
PYTHON_FOUND
)
message
(
SEND_ERROR
"boost-python was requested but python was not found."
)
message
(
SEND_ERROR
"boost-python was requested but python was not found."
)
endif
(
PYTHON_FOUND
)
endif
(
PYTHON_FOUND
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment