You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.0 KiB
32 lines
1.0 KiB
--- a/Source/cmFindPackageCommand.cxx
|
|
+++ b/Source/cmFindPackageCommand.cxx
|
|
@@ -218,6 +218,7 @@
|
|
"UNIX (U), or Apple (A) conventions.\n"
|
|
" <prefix>/ (W)\n"
|
|
" <prefix>/(cmake|CMake)/ (W)\n"
|
|
+ " <prefix>/(share|lib)/cmake/<name>*/ (U)\n"
|
|
" <prefix>/(share|lib)/<name>*/ (U)\n"
|
|
" <prefix>/(share|lib)/<name>*/(cmake|CMake)/ (U)\n"
|
|
"On systems supporting OS X Frameworks and Application Bundles "
|
|
@@ -1710,6 +1711,20 @@
|
|
common.push_back("lib");
|
|
common.push_back("share");
|
|
|
|
+ // PREFIX/(share|lib)/cmake/(Foo|foo|FOO).*/
|
|
+ {
|
|
+ cmFindPackageFileList lister(this);
|
|
+ lister
|
|
+ / cmFileListGeneratorFixed(prefix)
|
|
+ / cmFileListGeneratorEnumerate(common)
|
|
+ / cmFileListGeneratorFixed("cmake")
|
|
+ / cmFileListGeneratorProject(this->Names);
|
|
+ if(lister.Search())
|
|
+ {
|
|
+ return true;
|
|
+ }
|
|
+ }
|
|
+
|
|
// PREFIX/(share|lib)/(Foo|foo|FOO).*/
|
|
{
|
|
cmFindPackageFileList lister(this);
|