summaryrefslogtreecommitdiff
path: root/Modules/FindGTK2.cmake
diff options
context:
space:
mode:
authorDaniele E. Domenichelli <daniele.domenichelli@iit.it>2014-05-07 15:41:18 +0200
committerDaniele E. Domenichelli <daniele.domenichelli@iit.it>2014-05-19 16:55:12 +0200
commit81a3f228824058849368f9c3a8e318c02fa03097 (patch)
tree68324d3ad12527255d8ecb2e24fa0bdd1eb7ad5c /Modules/FindGTK2.cmake
parent7019152aa2951ba14bd89c4805a9a9bdb17e7060 (diff)
downloadcmake-81a3f228824058849368f9c3a8e318c02fa03097.tar.gz
Do not change minimum required version in modules
Some modules change CMake minimum required version when they are included. For example: cmake_minimum_required(VERSION 2.8.12) message("${CMAKE_MINIMUM_REQUIRED_VERSION}") include(CheckTypeSize) message("${CMAKE_MINIMUM_REQUIRED_VERSION}") will produce the following output: 2.8.12 2.6 This patch ensures that when you include a CMake module the minimum required version and the policies set are left unchanged. Fixes Issue #14864
Diffstat (limited to 'Modules/FindGTK2.cmake')
-rw-r--r--Modules/FindGTK2.cmake1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake
index 15bcab83c3..eaa5e550e1 100644
--- a/Modules/FindGTK2.cmake
+++ b/Modules/FindGTK2.cmake
@@ -572,7 +572,6 @@ endif()
# If specified, enforce version number
#
if(GTK2_FIND_VERSION)
- cmake_minimum_required(VERSION 2.6.2)
set(GTK2_FAILED_VERSION_CHECK true)
if(GTK2_DEBUG)
message(STATUS "[FindGTK2.cmake:${CMAKE_CURRENT_LIST_LINE}] "