]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
[E.A.] Copy the swig'ed foo.dll into foo_d.pyd in order that python
authoradam <adam>
Tue, 25 Nov 2008 09:50:37 +0000 (09:50 +0000)
committeradam <adam>
Tue, 25 Nov 2008 09:50:37 +0000 (09:50 +0000)
can import them on windows. It works only for python in debug mode.
It will be improved in the future.

salome_adm/cmake_files/am2cmake.py

index 43093a973147b367bee12fcc22fc2da04b254cc2..66b528bd20d30ba728cbdc04c2571c2be5b352a3 100644 (file)
@@ -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)