]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Portability pyhello
authoradam <adam>
Mon, 4 Jan 2010 11:39:33 +0000 (11:39 +0000)
committeradam <adam>
Mon, 4 Jan 2010 11:39:33 +0000 (11:39 +0000)
salome_adm/cmake_files/am2cmake.py

index a92eec6a69440e17e08676e66106666c3df78f6e..8affe058b1c8d14ffe44c62e5bd8cfad875f2e7b 100644 (file)
@@ -958,9 +958,17 @@ class CMakeFile(object):
             COMMAND ${OMNIORB_IDL} ${flags} ${input}
             MAIN_DEPENDENCY ${input}
             )
+            ''')
+            newlines.append('''
             install(FILES ${input} DESTINATION idl/salome)
-            SET(IDL_HEADER ${CMAKE_CURRENT_BINARY_DIR}/${base}.hh)
-            install(FILES ${IDL_HEADER} DESTINATION include/salome)
+            ''')
+            if self.module not in ["pyhello"]:
+                newlines.append('''
+                SET(IDL_HEADER ${CMAKE_CURRENT_BINARY_DIR}/${base}.hh)
+                install(FILES ${IDL_HEADER} DESTINATION include/salome)
+                ''')
+                pass
+            newlines.append('''
             INSTALL(CODE "SET(IDL_FILE ${input})")
             INSTALL(CODE "SET(DIR lib/python${PYTHON_VERSION}/site-packages/salome)")
             INSTALL(CODE "SET(CMAKE_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})")