From 890255c80f86eb03646c69228a62c4b1e4118ea6 Mon Sep 17 00:00:00 2001 From: ageay Date: Mon, 2 Apr 2012 13:40:49 +0000 Subject: [PATCH] MED CMakization --- salome_adm/cmake_files/InstallAndCompilePythonFile.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salome_adm/cmake_files/InstallAndCompilePythonFile.cmake b/salome_adm/cmake_files/InstallAndCompilePythonFile.cmake index 8acdaf333..8c62ec6d6 100644 --- a/salome_adm/cmake_files/InstallAndCompilePythonFile.cmake +++ b/salome_adm/cmake_files/InstallAndCompilePythonFile.cmake @@ -24,7 +24,7 @@ MACRO(INSTALL_AND_COMPILE_PYTHON_FILE PYFILE2COMPINST PYFILELOC) INSTALL(CODE "SET(PYTHON_FILE ${f})") FOREACH(input ${PYFILE2COMPINST}) GET_FILENAME_COMPONENT(inputname ${input} NAME) - INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${inputname} DESTINATION ${PYFILELOC}) + INSTALL(FILES ${input} DESTINATION ${CMAKE_INSTALL_PREFIX}/${PYFILELOC}) INSTALL(CODE "MESSAGE(STATUS \"py compiling ${CMAKE_INSTALL_PREFIX}/${PYFILELOC}/${inputname}\")") INSTALL(CODE "SET(CMD \"import py_compile ; py_compile.compile('${CMAKE_INSTALL_PREFIX}/${PYFILELOC}/${inputname}')\")") INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c \"\${CMD}\")") -- 2.39.2