find_package: Disable specific paths
There are a few cases when it would be useful to be able to disable a specific path for find_package
.
For example, imagine a project that checks if a library is available on the systems, and, if not found, builds it using ExternalProject
. Depending on the search paths, if on the next run the external project is found by find_package
, the external project is no longer handled by CMake.
In this case, it would be useful have an option to disable the build and the install paths used by ExternalProject
when searching for the library.