aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paludis/CMakeLists.txt1
-rw-r--r--python/CMakeLists.txt10
2 files changed, 10 insertions, 1 deletions
diff --git a/paludis/CMakeLists.txt b/paludis/CMakeLists.txt
index a2c55fa2e..14889788c 100644
--- a/paludis/CMakeLists.txt
+++ b/paludis/CMakeLists.txt
@@ -229,6 +229,7 @@ if(ENABLE_PYTHON)
target_link_libraries(libpaludispythonhooks
PRIVATE
libpaludis
+ libpaludisutil
${Boost_PYTHON_LIBRARY}
${PYTHON_LIBRARY})
endif()
diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
index 084945505..87aeb2920 100644
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -43,7 +43,10 @@ if(ENABLE_PYTHON)
${Boost_INCLUDE_DIRS})
target_link_libraries(libpaludispython
PRIVATE
- libpaludis)
+ ${Boost_LIBRARIES}
+ ${PYTHON_LIBRARIES}
+ libpaludis
+ libpaludisutil)
paludis_add_library(paludis UNVERSIONED SHARED_LIBRARY
"${CMAKE_CURRENT_SOURCE_DIR}/paludis_python_so.cc")
@@ -70,6 +73,10 @@ if(ENABLE_PYTHON)
${Boost_INCLUDE_DIRS})
target_link_libraries(libadditionaltests
PRIVATE
+ ${Boost_LIBRARIES}
+ ${PYTHON_LIBRARIES}
+ libpaludis
+ libpaludisutil
libpaludispython)
paludis_add_library(additional_tests UNVERSIONED SHARED_LIBRARY
@@ -81,6 +88,7 @@ if(ENABLE_PYTHON)
target_link_libraries(additional_tests
PRIVATE
${Boost_PYTHON_LIBRARY}
+ ${PYTHON_LIBRARIES}
libadditionaltests)
set_target_properties(additional_tests PROPERTIES
OUTPUT_NAME