summaryrefslogtreecommitdiffstats
path: root/Modules/CheckLanguage.cmake
diff options
context:
space:
mode:
authorDaniele E. Domenichelli <daniele.domenichelli@iit.it>2014-05-13 09:02:19 (GMT)
committerDaniele E. Domenichelli <daniele.domenichelli@iit.it>2014-05-19 14:55:12 (GMT)
commit1890c668e92b8bcd60075cf0a5a70411da2a2444 (patch)
tree20a9326c8c3ceb0261ffc8147f53cdcbbc93df34 /Modules/CheckLanguage.cmake
parent81a3f228824058849368f9c3a8e318c02fa03097 (diff)
downloadCMake-1890c668e92b8bcd60075cf0a5a70411da2a2444.zip
CMake-1890c668e92b8bcd60075cf0a5a70411da2a2444.tar.gz
CMake-1890c668e92b8bcd60075cf0a5a70411da2a2444.tar.bz2
Keep cmake_minimum_required calls in sync with current version
Update cmake_minimum_required calls in CMakeLists.txt in Modules and in CMakeLists.txt generated by other modules, so that they are always in sync with current CMake version.
Diffstat (limited to 'Modules/CheckLanguage.cmake')
-rw-r--r--Modules/CheckLanguage.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CheckLanguage.cmake b/Modules/CheckLanguage.cmake
index 3bd126a..99c809b 100644
--- a/Modules/CheckLanguage.cmake
+++ b/Modules/CheckLanguage.cmake
@@ -47,7 +47,7 @@ macro(check_language lang)
message(STATUS ${_desc})
file(REMOVE_RECURSE ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/Check${lang})
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/Check${lang}/CMakeLists.txt"
- "cmake_minimum_required(VERSION 2.8)
+ "cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(Check${lang} ${lang})
file(WRITE \"\${CMAKE_CURRENT_BINARY_DIR}/result.cmake\"
\"set(CMAKE_${lang}_COMPILER \\\"\${CMAKE_${lang}_COMPILER}\\\")\\n\"