summaryrefslogtreecommitdiffstats
path: root/swig/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-10-16 22:32:15 +0200
committerGravatar Jonathan Beck2009-10-16 22:32:15 +0200
commit0f69774fcfe32ac2a8dacefbea61e84d0a26a012 (patch)
tree5da7e0d661b9126e5bd0f98d592a5665a36461e0 /swig/CMakeLists.txt
parent7ba9a5437e49868ca7a7cc2f4d006509308b1ab4 (diff)
downloadlibplist-0f69774fcfe32ac2a8dacefbea61e84d0a26a012.tar.gz
libplist-0f69774fcfe32ac2a8dacefbea61e84d0a26a012.tar.bz2
Change python binding to be based on libplist++ object model.
Deprecate old binding.
Diffstat (limited to 'swig/CMakeLists.txt')
-rw-r--r--swig/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/swig/CMakeLists.txt b/swig/CMakeLists.txt
index f79b3dc..81db20a 100644
--- a/swig/CMakeLists.txt
+++ b/swig/CMakeLists.txt
@@ -4,8 +4,9 @@ SET(CMAKE_SWIG_FLAGS -Werror -Wall -modern)
INCLUDE_DIRECTORIES( ${PYTHON_INCLUDE_PATH} )
+SET_SOURCE_FILES_PROPERTIES(plist.i PROPERTIES CPLUSPLUS ON)
SWIG_ADD_MODULE( PList python plist.i )
-SWIG_LINK_LIBRARIES( PList plist ${PYTHON_LIBRARIES} )
+SWIG_LINK_LIBRARIES( PList plist plist++ ${PYTHON_LIBRARIES} )
EXEC_PROGRAM("${PYTHON_EXECUTABLE}"
ARGS "-c 'try:\n import distutils.sysconfig; print distutils.sysconfig.get_python_lib()\nexcept: pass\n'"