From 7b5186866a5baba54748633a08b1a164a5c74229 Mon Sep 17 00:00:00 2001 From: akl Date: Wed, 13 Mar 2013 13:17:14 +0000 Subject: [PATCH] Create a symbolic link to installed 'libSalomePyQt.so' instead of coping of it from build directory, because an installed library is cleared by CMAKE from runtime paths. --- src/SALOME_PYQT/SalomePyQt/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SALOME_PYQT/SalomePyQt/CMakeLists.txt b/src/SALOME_PYQT/SalomePyQt/CMakeLists.txt index 112a17800..34b6d3130 100755 --- a/src/SALOME_PYQT/SalomePyQt/CMakeLists.txt +++ b/src/SALOME_PYQT/SalomePyQt/CMakeLists.txt @@ -110,5 +110,7 @@ IF(WINDOWS) INSTALL(FILES ${CMAKE_INSTALL_PREFIX}/${GUI_salomelib_LIBS}/SalomePyQt.dll DESTINATION ${GUI_salomelib_LIBS} RENAME SalomePyQt_d.pyd) ENDIF(CMAKE_BUILD_TYPE STREQUAL Release) ELSE(WINDOWS) - INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libSalomePyQt.so DESTINATION ${GUI_salomelib_LIBS} RENAME SalomePyQt.so) + INSTALL(CODE "EXECUTE_PROCESS(COMMAND ln -sf libSalomePyQt.so SalomePyQt.so + WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${GUI_salomelib_LIBS} + OUTPUT_VARIABLE ln_res)" ) ENDIF(WINDOWS) -- 2.39.2