From: adam Date: Tue, 25 Nov 2008 09:50:37 +0000 (+0000) Subject: [E.A.] Copy the swig'ed foo.dll into foo_d.pyd in order that python X-Git-Tag: V5_1_0rc2~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=43232c7a7eeb4780b959df57684d757d45232c5d;p=modules%2Fkernel.git [E.A.] Copy the swig'ed foo.dll into foo_d.pyd in order that python can import them on windows. It works only for python in debug mode. It will be improved in the future. --- diff --git a/salome_adm/cmake_files/am2cmake.py b/salome_adm/cmake_files/am2cmake.py index 43093a973..66b528bd2 100644 --- a/salome_adm/cmake_files/am2cmake.py +++ b/salome_adm/cmake_files/am2cmake.py @@ -821,6 +821,7 @@ class CMakeFile(object): ELSE(BEGIN_WITH_lib) IF(WINDOWS) INSTALL(TARGETS ${name} DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome) + INSTALL(FILES ${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION}/site-packages/salome/${name}.dll DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome RENAME ${name}_d.pyd) ELSE(WINDOWS) GET_TARGET_PROPERTY(version ${name} VERSION) GET_TARGET_PROPERTY(soversion ${name} SOVERSION)