]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
MED CMakization
authorageay <ageay>
Mon, 2 Apr 2012 13:40:49 +0000 (13:40 +0000)
committerageay <ageay>
Mon, 2 Apr 2012 13:40:49 +0000 (13:40 +0000)
salome_adm/cmake_files/InstallAndCompilePythonFile.cmake

index 8acdaf333ff2caddb3c6d8afe2d130f28bab411d..8c62ec6d610f9b33c697ab56bda9991ae01b645a 100644 (file)
@@ -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}\")")