Skip to content

Use Expected omniidl When TANGO_OMNI_BASE Is Given

Fix #971 (closed)
The idea here is to replace PATHS with HINTS in find_program CMake directive so that the computed OMNIIDL_PATH takes precedence over the PATH environment variable which can contain something like /usr/bin where omniidl will be installed by default by some Debian packages.
Even when omniidl package was installed as system package, we want to use the omniidl executable from $OMNI_BASE/bin when -DOMNI_BASE=<path_to_omniOrb> option is used.
If we don't do that, we could get compilation errors because of a mismatch in the omniORB version used when generating files with omniidl and when compiling with the omniORB files from the given OMNI_BASE.

Merge request reports