diff options
author | Alex Neundorf <neundorf@kde.org> | 2011-08-22 19:23:55 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2011-08-22 19:23:55 (GMT) |
commit | 98472e45c86d0b8592e0a6361d392bfab921b3a0 (patch) | |
tree | d815f22422d763dc1c4a53b95fea1827bfb99484 | |
parent | a6ccf3cb6552f8f2b7b6adaf419a278efd085ac3 (diff) | |
download | CMake-98472e45c86d0b8592e0a6361d392bfab921b3a0.zip CMake-98472e45c86d0b8592e0a6361d392bfab921b3a0.tar.gz CMake-98472e45c86d0b8592e0a6361d392bfab921b3a0.tar.bz2 |
Require the current cmake version in --find-package mode
This fixes the problem that otherwise Platforms/CYGWIN.cmake doesn't
know whether it should set WIN32 or not.
Now it uses always the current behaviour.
Alex
-rw-r--r-- | Modules/CMakeFindPackageMode.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeFindPackageMode.cmake b/Modules/CMakeFindPackageMode.cmake index a8674aa..e0b5885 100644 --- a/Modules/CMakeFindPackageMode.cmake +++ b/Modules/CMakeFindPackageMode.cmake @@ -37,6 +37,9 @@ if(NOT MODE) message(FATAL_ERROR "MODE argument not specified. Use either EXIST, COMPILE or LINK.") endif() +# require the current version. If we don't do this, Platforms/CYGWIN.cmake complains because +# it doesn't know whether it should set WIN32 or not: +cmake_minimum_required(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} ) include(CMakeDetermineSystem) |