2014-01-03 00:11:28 +01:00
|
|
|
diff --git a/mapscript/python/CMakeLists.txt b/mapscript/python/CMakeLists.txt
|
|
|
|
index 33945b2..a14c246 100644
|
|
|
|
--- a/mapscript/python/CMakeLists.txt
|
|
|
|
+++ b/mapscript/python/CMakeLists.txt
|
|
|
|
@@ -34,7 +34,14 @@ SWIG_ADD_MODULE(pythonmapscript python ../mapscript.i pygdioctx/pygdioctx.c)
|
|
|
|
SWIG_LINK_LIBRARIES(pythonmapscript ${PYTHON_LIBRARIES} ${MAPSERVER_LIBMAPSERVER})
|
|
|
|
|
|
|
|
set_target_properties(${SWIG_MODULE_pythonmapscript_REAL_NAME} PROPERTIES PREFIX "")
|
|
|
|
-set_target_properties(${SWIG_MODULE_pythonmapscript_REAL_NAME} PROPERTIES OUTPUT_NAME _mapscript)
|
2016-03-08 13:02:44 +01:00
|
|
|
+set_target_properties(${SWIG_MODULE_pythonmapscript_REAL_NAME} PROPERTIES OUTPUT_NAME _mapscript)
|
2014-01-03 00:11:28 +01:00
|
|
|
+
|
|
|
|
+if(NOT APPLE)
|
|
|
|
+ set_target_properties(${SWIG_MODULE_pythonmapscript_REAL_NAME} PROPERTIES
|
|
|
|
+ VERSION ${MapServer_VERSION_STRING}
|
|
|
|
+ SOVERSION ${MapServer_SOVERSION}
|
|
|
|
+ )
|
|
|
|
+endif(NOT APPLE)
|
|
|
|
|
|
|
|
|
|
|
|
execute_process ( COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)" OUTPUT_VARIABLE PYTHON_SITE_PACKAGES OUTPUT_STRIP_TRAILING_WHITESPACE)
|