Lines 45-50
cmFindPackageCommand::cmFindPackageCommand()
Link Here
|
45 |
this->UseConfigFiles = true; |
45 |
this->UseConfigFiles = true; |
46 |
this->UseFindModules = true; |
46 |
this->UseFindModules = true; |
47 |
this->DebugMode = false; |
47 |
this->DebugMode = false; |
|
|
48 |
this->UseLib32Paths = false; |
48 |
this->UseLib64Paths = false; |
49 |
this->UseLib64Paths = false; |
49 |
this->PolicyScope = true; |
50 |
this->PolicyScope = true; |
50 |
this->VersionMajor = 0; |
51 |
this->VersionMajor = 0; |
Lines 117-122
bool cmFindPackageCommand
Link Here
|
117 |
this->LibraryArchitecture = arch; |
118 |
this->LibraryArchitecture = arch; |
118 |
} |
119 |
} |
119 |
|
120 |
|
|
|
121 |
// Lookup whether lib32 paths should be used. |
122 |
if (this->Makefile->PlatformIs32Bit() && |
123 |
this->Makefile->GetState()->GetGlobalPropertyAsBool( |
124 |
"FIND_LIBRARY_USE_LIB32_PATHS")) { |
125 |
this->UseLib32Paths = true; |
126 |
} |
127 |
|
120 |
// Lookup whether lib64 paths should be used. |
128 |
// Lookup whether lib64 paths should be used. |
121 |
if(this->Makefile->PlatformIs64Bit() && |
129 |
if(this->Makefile->PlatformIs64Bit() && |
122 |
this->Makefile->GetState() |
130 |
this->Makefile->GetState() |
Lines 2109-2114
bool cmFindPackageCommand::SearchPrefix(std::string const& prefix_in)
Link Here
|
2109 |
{ |
2117 |
{ |
2110 |
common.push_back("lib/"+this->LibraryArchitecture); |
2118 |
common.push_back("lib/"+this->LibraryArchitecture); |
2111 |
} |
2119 |
} |
|
|
2120 |
if (this->UseLib32Paths) |
2121 |
{ |
2122 |
common.push_back("lib32"); |
2123 |
} |
2112 |
if(this->UseLib64Paths) |
2124 |
if(this->UseLib64Paths) |
2113 |
{ |
2125 |
{ |
2114 |
common.push_back("lib64"); |
2126 |
common.push_back("lib64"); |