aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Michał Górny <mgorny@gentoo.org> 2016-12-14 20:34:13 +0100
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-12-15 18:39:40 -0800
commitbc1906b4461328b7cf42666ef9448d5905487d07 (patch)
tree72e2315717d4f04161f6cb3732fe71753dc35db3
parent84c6a86f31312cee294b81a37e6ab68e3621592b (diff)
downloadpaludis-bc1906b4461328b7cf42666ef9448d5905487d07.tar.gz
paludis-bc1906b4461328b7cf42666ef9448d5905487d07.tar.xz
build: Add missing linkage for Python libs
-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