diff options
author | 2019-10-22 20:25:12 +0200 | |
---|---|---|
committer | 2019-10-24 20:30:36 +0200 | |
commit | 4ad89450ae45dacb5c7b0222c175f11584d694c3 (patch) | |
tree | ea4666c27197c65e0e996e4dab128b6b2411b17d | |
parent | 382e5e7735ed86b91e57a5a2427277142b1814ec (diff) | |
download | paludis-4ad89450ae45dacb5c7b0222c175f11584d694c3.tar.gz paludis-4ad89450ae45dacb5c7b0222c175f11584d694c3.tar.xz |
Use the versioned component and imported target for boost python
-rw-r--r-- | CMakeLists.txt | 5 | ||||
-rw-r--r-- | paludis/CMakeLists.txt | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b35d0e59a..26e919153 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -329,10 +329,9 @@ if(ENABLE_PYTHON) find_package(PythonLibs ${PYTHON_VERSION}) - set(Boost_PYTHON_VERSION ${PYTHON_VERSION}) - find_package(Boost REQUIRED + find_package(Boost 1.67.0 REQUIRED COMPONENTS - python) + python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}) set(PALUDIS_PYTHON_INSTALL_DIR "${PALUDIS_PYEXECDIR}" CACHE PATH "python installation dir") diff --git a/paludis/CMakeLists.txt b/paludis/CMakeLists.txt index b63c4dbf0..8677d526c 100644 --- a/paludis/CMakeLists.txt +++ b/paludis/CMakeLists.txt @@ -230,7 +230,7 @@ if(ENABLE_PYTHON) PRIVATE libpaludis libpaludisutil - ${Boost_PYTHON_LIBRARY} + Boost::python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} ${PYTHON_LIBRARY}) endif() |