From 191f25529e8a63791074504b9dae58f30f9c15d5 Mon Sep 17 00:00:00 2001 From: Fred Hornsey Date: Thu, 11 Apr 2024 17:34:12 -0500 Subject: [PATCH] Workaround doesn't work on Release https://github.com/DOCGroup/MPC/pull/202 --- cmake/build_ace_tao.cmake | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/cmake/build_ace_tao.cmake b/cmake/build_ace_tao.cmake index c2f36750ea1..eb2bcedc8e3 100644 --- a/cmake/build_ace_tao.cmake +++ b/cmake/build_ace_tao.cmake @@ -16,18 +16,6 @@ if(OPENDDS_JUST_BUILD_HOST_TOOLS) list(APPEND _OPENDDS_CONFIGURE_ACE_TAO_ARGS "--workspace-file=${ws}") endif() -set(_build_cmd "${CMAKE_COMMAND}" -E env "ACE_ROOT=${OPENDDS_ACE}" "TAO_ROOT=${OPENDDS_TAO}") -if(_OPENDDS_XERCES3_FOR_ACE) - list(APPEND _build_cmd "XERCESCROOT=${_OPENDDS_XERCES3_FOR_ACE}") - - # Vcpkg debug libraries are in a non-standard place - set(_opendds_debug_vcpkg_xerces3_for_ace "${_OPENDDS_XERCES3_FOR_ACE}/debug/lib") - if(MSVC AND IS_DIRECTORY "${_opendds_debug_vcpkg_xerces3_for_ace}") - list(APPEND _OPENDDS_CONFIGURE_ACE_TAO_ARGS - --env "XERCESC_LIBDIR=${_opendds_debug_vcpkg_xerces3_for_ace}") - endif() -endif() - find_package(Perl REQUIRED) if(OPENDDS_STATIC) list(APPEND _OPENDDS_CONFIGURE_ACE_TAO_ARGS --static=1) @@ -47,6 +35,11 @@ execute_process( COMMAND_ERROR_IS_FATAL ANY ) +set(_build_cmd "${CMAKE_COMMAND}" -E env "ACE_ROOT=${OPENDDS_ACE}" "TAO_ROOT=${OPENDDS_TAO}") +if(_OPENDDS_XERCES3_FOR_ACE) + list(APPEND _build_cmd "XERCESCROOT=${_OPENDDS_XERCES3_FOR_ACE}") +endif() + if(_OPENDDS_MPC_TYPE STREQUAL gnuace) execute_process( COMMAND