diff options
author | Daniele E. Domenichelli <daniele.domenichelli@iit.it> | 2014-05-07 13:41:18 (GMT) |
---|---|---|
committer | Daniele E. Domenichelli <daniele.domenichelli@iit.it> | 2014-05-19 14:55:12 (GMT) |
commit | 81a3f228824058849368f9c3a8e318c02fa03097 (patch) | |
tree | 68324d3ad12527255d8ecb2e24fa0bdd1eb7ad5c /Modules/FindCUDA.cmake | |
parent | 7019152aa2951ba14bd89c4805a9a9bdb17e7060 (diff) | |
download | CMake-81a3f228824058849368f9c3a8e318c02fa03097.zip CMake-81a3f228824058849368f9c3a8e318c02fa03097.tar.gz CMake-81a3f228824058849368f9c3a8e318c02fa03097.tar.bz2 |
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/FindCUDA.cmake')
-rw-r--r-- | Modules/FindCUDA.cmake | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake index d1c31a4..d9809ad 100644 --- a/Modules/FindCUDA.cmake +++ b/Modules/FindCUDA.cmake @@ -330,11 +330,6 @@ # FindCUDA.cmake -# We need to have at least this version to support the VERSION_LESS argument to 'if' (2.6.2) and unset (2.6.3) -cmake_policy(PUSH) -cmake_minimum_required(VERSION 2.6.3) -cmake_policy(POP) - # This macro helps us find the location of helper files we will need the full path to macro(CUDA_FIND_HELPER_FILE _name _extension) set(_full_name "${_name}.${_extension}") |