]> SALOME platform Git repositories - tools/documentation.git/commitdiff
Salome HOME
Synchronize adm files V7_8_0a2 V7_8_0b1
authormnt <mnt@opencascade.com>
Mon, 11 Apr 2016 18:23:56 +0000 (21:23 +0300)
committermnt <mnt@opencascade.com>
Mon, 11 Apr 2016 18:23:56 +0000 (21:23 +0300)
CMakeModules/SalomeMacros.cmake

index 5a94723fb09407b4eb355b90d8aff80dc6baac32..f78ffe4ac1c29134793b733015d5b61dc6f4b781 100644 (file)
@@ -136,13 +136,13 @@ MACRO(SALOME_INSTALL_SCRIPTS file_list path)
       LIST(APPEND _all_pyo ${_pyo_file})
       ADD_CUSTOM_COMMAND(
            OUTPUT ${_pyc_file}
-           COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile ; py_compile.compile('${_source_prefix}${file}', '${_pyc_file}' )"
+           COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile ; py_compile.compile('${_source_prefix}${file}', '${_pyc_file}', doraise=True )"
            DEPENDS ${PREFIX}${file}
            VERBATIM
        )
       ADD_CUSTOM_COMMAND(
            OUTPUT ${_pyo_file}
-           COMMAND ${PYTHON_EXECUTABLE} -O -c "import py_compile ; py_compile.compile('${_source_prefix}${file}', '${_pyo_file}' )"
+           COMMAND ${PYTHON_EXECUTABLE} -O -c "import py_compile ; py_compile.compile('${_source_prefix}${file}', '${_pyo_file}', doraise=True )"
            DEPENDS ${PREFIX}${file}
            VERBATIM
        )