mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 22:50:26 -06:00
Drop compatibility with CMake < 2.4
Drop all behavior activated by setting CMAKE_BACKWARDS_COMPATIBILITY to a value lower than 2.4, and generate an error when projects or the user attempt to do so. In the error suggest using a CMake 2.8.x release. Teach cmake_minimum_required to warn about projects that do not require at least CMake 2.4. They are not supported by CMake >= 3.0. Replace the documentation of CMAKE_BACKWARDS_COMPATIBILITY with a reference to policy CMP0001.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
cmake_minimum_required(VERSION 1.3)
|
||||
#
|
||||
# Create exe.
|
||||
#
|
||||
|
||||
@@ -838,13 +838,13 @@ int main()
|
||||
#endif
|
||||
#endif // defined(_WIN32) && !defined(__CYGWIN__)
|
||||
|
||||
if(strcmp(CMAKE_MINIMUM_REQUIRED_VERSION, "1.3") == 0)
|
||||
if(strcmp(CMAKE_MINIMUM_REQUIRED_VERSION, "2.4") == 0)
|
||||
{
|
||||
cmPassed("CMAKE_MINIMUM_REQUIRED_VERSION is set to 1.3");
|
||||
cmPassed("CMAKE_MINIMUM_REQUIRED_VERSION is set to 2.4");
|
||||
}
|
||||
else
|
||||
{
|
||||
cmFailed("CMAKE_MINIMUM_REQUIRED_VERSION is not set to the expected 1.3");
|
||||
cmFailed("CMAKE_MINIMUM_REQUIRED_VERSION is not set to the expected 2.4");
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user