summaryrefslogtreecommitdiff
path: root/Modules/CMakeFindPackageMode.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-08-22 21:23:55 +0200
committerAlex Neundorf <neundorf@kde.org>2011-08-22 21:23:55 +0200
commit98472e45c86d0b8592e0a6361d392bfab921b3a0 (patch)
treed815f22422d763dc1c4a53b95fea1827bfb99484 /Modules/CMakeFindPackageMode.cmake
parenta6ccf3cb6552f8f2b7b6adaf419a278efd085ac3 (diff)
downloadcmake-98472e45c86d0b8592e0a6361d392bfab921b3a0.tar.gz
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
Diffstat (limited to 'Modules/CMakeFindPackageMode.cmake')
-rw-r--r--Modules/CMakeFindPackageMode.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeFindPackageMode.cmake b/Modules/CMakeFindPackageMode.cmake
index a8674aad37..e0b588537a 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)