mirror of
https://github.com/reactos/CMake.git
synced 2025-02-26 15:05:34 +00:00
Merge branch 'fix-CMP0017-path-case' into release
This commit is contained in:
commit
4caa0e7e75
@ -3362,7 +3362,7 @@ std::string cmMakefile::GetModulesFile(const char* filename) const
|
||||
if (!moduleInCMakeModulePath.empty() && !moduleInCMakeRoot.empty()) {
|
||||
const char* currentFile = this->GetDefinition("CMAKE_CURRENT_LIST_FILE");
|
||||
std::string mods = cmSystemTools::GetCMakeRoot() + "/Modules/";
|
||||
if (currentFile && strncmp(currentFile, mods.c_str(), mods.size()) == 0) {
|
||||
if (currentFile && cmSystemTools::IsSubDirectory(currentFile, mods)) {
|
||||
switch (this->GetPolicyStatus(cmPolicies::CMP0017)) {
|
||||
case cmPolicies::WARN: {
|
||||
std::ostringstream e;
|
||||
|
Loading…
x
Reference in New Issue
Block a user