Skip to content

[!569] Let cmake disable search for modules with pkg-config.

Markus Blatt requested to merge cherry-pick-1e7fbb59-2 into releases/2.5

Merge branch 'let-cmake-disable-pkgconfig-search' into 'master'

For whatever reason we still allow to search for a module with pkg-config if CMake was not successful. This leads to the weired situation that if we pass -DCMAKE_DISABLE_FIND_PACKAGE_dune-uggrid=ON to cmake and dune-uggrid is installed in a default sytem path we will end up with a CMakeCache.txt actually using dune-uggrid.

This patch is the minimal change to stop searching for a DUNE module with pkg-config if CMake was instructed not to use it.

See merge request core/dune-common!569

(cherry picked from commit 1e7fbb59)

df4c73f6 Let cmake disable search for modules with pkg-config.

Merge request reports