> Couldn't this prevented by using config mode (find_package(<module> CONFIG)) which only searches for <module>-config*.cmake files.

Maybe, but this would be incompatible with the OPM build system: You can only specify the name of a prerequisite (`UG` in this case) and it will automatically call the `FindUG` module. Now, to use config mode, you need to specify UG_DIR inside this module before calling find_package, which leads to a chicken-and-egg problem.

Also, there would still be the issues that the libraries listed in `ug-config.cmake` are incorrect (or rather incomplete) and that the OPM build system expects a certain variable naming convention to be able to pick up the library...