diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2014-10-03 16:49:00 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2014-10-07 21:14:45 (GMT) |
commit | 4f9bf4468bd5bcd48be080fa0bc736ebb9df4769 (patch) | |
tree | fea00a2bab7f7b936c4910076e3ea6b0224dbca3 /Tests/RunCMake/FPHSA/FindPseudo.cmake | |
parent | 0e0cb710d03006920bef9d8746e0966a6e48e8fb (diff) | |
download | CMake-4f9bf4468bd5bcd48be080fa0bc736ebb9df4769.zip CMake-4f9bf4468bd5bcd48be080fa0bc736ebb9df4769.tar.gz CMake-4f9bf4468bd5bcd48be080fa0bc736ebb9df4769.tar.bz2 |
FPHSA: when EXACT version match is requested only compare the components given
Given that you have a foobar that identifies itself as 1.2.3 from now on a
find_package(foobar 1.2 EXACT)
will succeed, as 1.2.3 will now be considered as being 1.2. Until now this was
only the case for version 1.2.0.
Diffstat (limited to 'Tests/RunCMake/FPHSA/FindPseudo.cmake')
-rw-r--r-- | Tests/RunCMake/FPHSA/FindPseudo.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/FPHSA/FindPseudo.cmake b/Tests/RunCMake/FPHSA/FindPseudo.cmake new file mode 100644 index 0000000..dc3558b --- /dev/null +++ b/Tests/RunCMake/FPHSA/FindPseudo.cmake @@ -0,0 +1,6 @@ +# pseudo find_module + +set(FOOBAR TRUE) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(Pseudo REQUIRED_VARS FOOBAR VERSION_VAR Pseudo_VERSION) |