From 1f2760df417d0861f1420d3370d1e35a895305e1 Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 20 Nov 2008 15:55:33 +0000 Subject: [PATCH] [E.A.] For other modules thna KERNEL, we need to replace the by / to compile correctly the idl files at install stage --- salome_adm/cmake_files/am2cmake.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.39.2