summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-04-20 09:03:50 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-04-20 09:03:50 (GMT)
commit3e14c568397d7500a8e734458a88bbac9030ce57 (patch)
tree11c78d1d5e877ba4e9f944836e0e6e32d135522c
parent41d7f36943ea759435e63ec656ab558cc3a320ca (diff)
downloadlibkolabxml-3e14c568397d7500a8e734458a88bbac9030ce57.tar.gz
the old version of FindPythonLibs.cmake doesn't set the prefix.
-rw-r--r--src/python/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/python/CMakeLists.txt b/src/python/CMakeLists.txt
index 7646f69..0c74f36 100644
--- a/src/python/CMakeLists.txt
+++ b/src/python/CMakeLists.txt
@@ -29,6 +29,10 @@ include_directories(${PYTHON_INCLUDE_DIRS} ${PYTHON_INCLUDE_PATH})
set(PYTHON_MODULE_PREFIX "_")
python_add_module(kolabformat ${KOLAB_SWIG_PYTHON_SOURCE_FILE})
+
+#cmake 2.6.4 fails to respect the module prefix
+SET_TARGET_PROPERTIES(kolabformat PROPERTIES PREFIX "${PYTHON_MODULE_PREFIX}")
+
target_link_libraries(kolabformat kolabxml ${PYTHON_LIBRARIES})
configure_file(test.py ${CMAKE_CURRENT_BINARY_DIR} COPYONLY)