
Remove highly specialized and totally positional argument handling in find_dependency macro, and instead just pass arguments through to find_package. This gives users access to the full suite of arguments that find_package knows, and is backward compatible with the old arguments. Also, rewrite the unit tests for this, since the old tests are exclusively focused on testing the old argument handling and are no longer applicable, and add some success tests (the old tests did not even set up the CMake state in a way that CMake had any hope of ever finding the test package).
12 lines
467 B
Plaintext
12 lines
467 B
Plaintext
CMake Error at .*/Modules/CMakeFindDependencyMacro.cmake:[0-9]+ \(find_package\):
|
|
Could not find a configuration file for package "Pack1" that exactly
|
|
matches requested version "1.1".
|
|
|
|
The following configuration files were considered but not accepted:
|
|
|
|
.*/Tests/RunCMake/find_dependency/share/cmake/Pack1/Pack1Config.cmake, version: 1.3
|
|
|
|
Call Stack \(most recent call first\):
|
|
bad-version-exact.cmake:5 \(find_dependency\)
|
|
CMakeLists.txt:3 \(include\)
|