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) +set_target_properties(${SWIG_MODULE_pythonmapscript_REAL_NAME} PROPERTIES OUTPUT_NAME python_mapscript) + +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)