From 4d902825ca14d5c0b57a2059702842c14db0ef96 Mon Sep 17 00:00:00 2001 From: Gilles DAVID Date: Thu, 27 Jul 2017 14:11:14 +0200 Subject: [PATCH] Fix correct install directory for CORBA generated python files when DESTDIR is specified during make command --- cmake/UseOmniORB.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/UseOmniORB.cmake b/cmake/UseOmniORB.cmake index 4995535..f216fc7 100644 --- a/cmake/UseOmniORB.cmake +++ b/cmake/UseOmniORB.cmake @@ -130,7 +130,7 @@ MACRO(OMNIORB_ADD_MODULE module idlfiles incdirs) IF(OMNIORB_PYTHON_BACKEND) STRING(REPLACE ";" " " _tmp "${_py_flags}") - INSTALL(CODE "OMNIORB_COMPILE_IDL_FORPYTHON_ON_INSTALL( \"${OMNIORB_IDL_COMPILER}\" \"${_tmp}\" \"${_input_cmd}\" \"${CMAKE_INSTALL_PREFIX}/\${INSTALL_PYIDL_DIR}\" )") + INSTALL(CODE "OMNIORB_COMPILE_IDL_FORPYTHON_ON_INSTALL( \"${OMNIORB_IDL_COMPILER}\" \"${_tmp}\" \"${_input_cmd}\" \"\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/\${INSTALL_PYIDL_DIR}\" )") ENDIF() ENDFOREACH() -- 2.39.2