From: adam Date: Thu, 20 Nov 2008 15:55:33 +0000 (+0000) Subject: [E.A.] For other modules thna KERNEL, we need to replace the by / X-Git-Tag: V5_1_0rc2~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1f2760df417d0861f1420d3370d1e35a895305e1;p=modules%2Fkernel.git [E.A.] For other modules thna KERNEL, we need to replace the by / to compile correctly the idl files at install stage --- diff --git a/salome_adm/cmake_files/am2cmake.py b/salome_adm/cmake_files/am2cmake.py index ab8013315..43093a973 100644 --- a/salome_adm/cmake_files/am2cmake.py +++ b/salome_adm/cmake_files/am2cmake.py @@ -504,7 +504,15 @@ class CMakeFile(object): INSTALL(CODE "SET(DIR lib/python${PYTHON_VERSION}/site-packages/salome)") INSTALL(CODE "SET(CMAKE_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})") INSTALL(CODE "SET(OMNIORB_IDL_PYTHON ${OMNIORB_IDL_PYTHON})") + # -- + SET(flags) + FOREACH(f ${IDLPYFLAGS}) + SET(flags "${flags} ${f}") + ENDFOREACH(f ${IDLPYFLAGS}) + SET(IDLPYFLAGS ${flags}) + STRING(REPLACE "\\\\" "/" IDLPYFLAGS ${IDLPYFLAGS}) INSTALL(CODE "SET(IDLPYFLAGS ${IDLPYFLAGS})") + # -- ''') if self.module == "kernel": newlines.append(''' @@ -512,6 +520,7 @@ class CMakeFile(object): ''') else: newlines.append(''' + STRING(REPLACE "\\\\" "/" KERNEL_ROOT_DIR ${KERNEL_ROOT_DIR}) INSTALL(SCRIPT ${KERNEL_ROOT_DIR}/salome_adm/cmake_files/install_python_from_idl.cmake) ''') pass