From: bruneton Date: Mon, 21 Oct 2013 10:03:30 +0000 (+0000) Subject: CMake: modifying OMNIORB_ADD_MODULE macro to support dynamic build of IDL files X-Git-Tag: BR_hydro_v_0_3_1~66 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=10217edaa96b18e76d8f32d05b6248b6101eaa6c;p=modules%2Fkernel.git CMake: modifying OMNIORB_ADD_MODULE macro to support dynamic build of IDL files in the build tree (used in PARAVIS module) --- diff --git a/salome_adm/cmake_files/UseOmniORB.cmake b/salome_adm/cmake_files/UseOmniORB.cmake index 3e651b694..414018599 100644 --- a/salome_adm/cmake_files/UseOmniORB.cmake +++ b/salome_adm/cmake_files/UseOmniORB.cmake @@ -117,14 +117,14 @@ MACRO(OMNIORB_ADD_MODULE module idlfiles incdirs) ADD_CUSTOM_COMMAND(OUTPUT ${_outputs} COMMAND ${OMNIORB_IDL_COMPILER} ${_cxx_flags} ${_input_cmd} - DEPENDS ${_input}) + DEPENDS ${_input_cmd}) - INSTALL(FILES ${_input} DESTINATION idl/salome) + INSTALL(FILES ${_input_cmd} DESTINATION idl/salome) INSTALL(FILES ${_inc} DESTINATION include/salome) IF(OMNIORB_PYTHON_BACKEND) STRING(REPLACE ";" " " _tmp "${_py_flags}") - INSTALL(CODE "OMNIORB_COMPILE_IDL_FORPYTHON_ON_INSTALL( \"${OMNIORB_IDL_COMPILER}\" \"${_tmp}\" \"${_input}\" \"${CMAKE_INSTALL_PREFIX}/\${INSTALL_PYIDL_DIR}\" )") + INSTALL(CODE "OMNIORB_COMPILE_IDL_FORPYTHON_ON_INSTALL( \"${OMNIORB_IDL_COMPILER}\" \"${_tmp}\" \"${_input_cmd}\" \"${CMAKE_INSTALL_PREFIX}/\${INSTALL_PYIDL_DIR}\" )") ENDIF() ENDFOREACH()