|
@@ -449,19 +449,20 @@ cmPolicies::cmPolicies()
|
|
|
|
|
|
|
|
this->DefinePolicy(
|
|
this->DefinePolicy(
|
|
|
CMP0017, "CMP0017",
|
|
CMP0017, "CMP0017",
|
|
|
- "Prefer files from CMAKE_ROOT/ when including from CMAKE_ROOT.",
|
|
|
|
|
- "Starting with CMake 2.8.3, if a cmake-module shipped with CMake (i.e. "
|
|
|
|
|
- "located in CMAKE_ROOT/Modules/) calls include() or find_package(), "
|
|
|
|
|
- "the files located in CMAKE_ROOT/Modules/ are prefered over the files "
|
|
|
|
|
- "in CMAKE_MODULE_PATH. This makes sure that the modules belonging to "
|
|
|
|
|
|
|
+ "Prefer files from the CMake module directory when including from there.",
|
|
|
|
|
+ "Starting with CMake 2.8.4, if a cmake-module shipped with CMake (i.e. "
|
|
|
|
|
+ "located in the CMake module directory) calls include() or "
|
|
|
|
|
+ "find_package(), the files located in the the CMake module directory are "
|
|
|
|
|
+ "prefered over the files in CMAKE_MODULE_PATH. "
|
|
|
|
|
+ "This makes sure that the modules belonging to "
|
|
|
"CMake always get those files included which they expect, and against "
|
|
"CMake always get those files included which they expect, and against "
|
|
|
"which they were developed and tested. "
|
|
"which they were developed and tested. "
|
|
|
"In call other cases, the files found in "
|
|
"In call other cases, the files found in "
|
|
|
"CMAKE_MODULE_PATH still take precedence over the ones in "
|
|
"CMAKE_MODULE_PATH still take precedence over the ones in "
|
|
|
- "CMAKE_ROOT/Modules/. "
|
|
|
|
|
|
|
+ "the CMake module directory. "
|
|
|
"The OLD behaviour is to always prefer files from CMAKE_MODULE_PATH over "
|
|
"The OLD behaviour is to always prefer files from CMAKE_MODULE_PATH over "
|
|
|
- "files from CMAKE_ROOT/Modules/.",
|
|
|
|
|
- 2,8,3,0, cmPolicies::WARN);
|
|
|
|
|
|
|
+ "files from the CMake modules directory.",
|
|
|
|
|
+ 2,8,4,0, cmPolicies::WARN);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
cmPolicies::~cmPolicies()
|
|
cmPolicies::~cmPolicies()
|