Fail to cross-compile cpptango 9.4.1
Trying to cross-compile cpptango 9.4.1 for osx-arm64 fails (https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=652228&view=logs&j=d6e17299-69de-5342-9bfa-d2a6718dd363&t=07f994f3-c7f4-5985-4d61-e77794d5f611) with:
Call Stack (most recent call first):
configure/find_and_check_omniidl.cmake:65 (test_omniidl)
configure/CMakeLists.txt:78 (include)
CMakeLists.txt:76 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
OMNIIDL_TEST_RUN (advanced)
For details see /Users/benjaminbertrand/Dev/conda/conda-forge/cpptango-feedstock/miniforge3/conda-bld/debug_1675370822404/work/build/TryRunResults.cmake
/Users/benjaminbertrand/Dev/conda/conda-forge/cpptango-feedstock/miniforge3/conda-bld/debug_1675370822404/work/configure/find_and_check_omniidl.cmake(53): if(NOT OMNIIDL_TEST_COMPILE )
/Users/benjaminbertrand/Dev/conda/conda-forge/cpptango-feedstock/miniforge3/conda-bld/debug_1675370822404/work/configure/find_and_check_omniidl.cmake(59): if(NOT OMNIIDL_TEST_RUN EQUAL 0 )
/Users/benjaminbertrand/Dev/conda/conda-forge/cpptango-feedstock/miniforge3/conda-bld/debug_1675370822404/work/configure/find_and_check_omniidl.cmake(60): message(WARNING ${OMNIIDL} has bug in c++ code generation, will not use. )
CMake Warning at configure/find_and_check_omniidl.cmake:60 (message):
/Users/benjaminbertrand/Dev/conda/conda-forge/cpptango-feedstock/miniforge3/conda-bld/debug_1675370822404/_build_env/bin/omniidl
has bug in c++ code generation, will not use.
Call Stack (most recent call first):
configure/find_and_check_omniidl.cmake:65 (test_omniidl)
configure/CMakeLists.txt:78 (include)
CMakeLists.txt:76 (include)
/Users/benjaminbertrand/Dev/conda/conda-forge/cpptango-feedstock/miniforge3/conda-bld/debug_1675370822404/work/configure/find_and_check_omniidl.cmake(61): set(OMNIIDL FALSE )
It looks like the new configure/find_and_check_omniidl.cmake file doesn’t work when cross-compiling.