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.
This commit is contained in:
Daniele E. Domenichelli 2014-05-13 11:02:19 +02:00
parent 81a3f22882
commit 1890c668e9
5 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@ macro(check_language lang)
message(STATUS ${_desc}) message(STATUS ${_desc})
file(REMOVE_RECURSE ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/Check${lang}) file(REMOVE_RECURSE ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/Check${lang})
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/Check${lang}/CMakeLists.txt" 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}) project(Check${lang} ${lang})
file(WRITE \"\${CMAKE_CURRENT_BINARY_DIR}/result.cmake\" file(WRITE \"\${CMAKE_CURRENT_BINARY_DIR}/result.cmake\"
\"set(CMAKE_${lang}_COMPILER \\\"\${CMAKE_${lang}_COMPILER}\\\")\\n\" \"set(CMAKE_${lang}_COMPILER \\\"\${CMAKE_${lang}_COMPILER}\\\")\\n\"

View File

@ -183,7 +183,7 @@ if(SDL_FOUND AND SDL_SOUND_INCLUDE_DIR AND SDL_SOUND_LIBRARY)
# in the SDL_LIBRARY string after the "-framework". # in the SDL_LIBRARY string after the "-framework".
# But if I quote the stuff in INCLUDE_DIRECTORIES, it doesn't work. # But if I quote the stuff in INCLUDE_DIRECTORIES, it doesn't work.
file(WRITE ${PROJECT_BINARY_DIR}/CMakeTmp/CMakeLists.txt file(WRITE ${PROJECT_BINARY_DIR}/CMakeTmp/CMakeLists.txt
"cmake_minimum_required(VERSION 2.8) "cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(DetermineSoundLibs) project(DetermineSoundLibs)
include_directories(${SDL_INCLUDE_DIR} ${SDL_SOUND_INCLUDE_DIR}) include_directories(${SDL_INCLUDE_DIR} ${SDL_SOUND_INCLUDE_DIR})
add_executable(DetermineSoundLibs DetermineSoundLibs.c) add_executable(DetermineSoundLibs DetermineSoundLibs.c)

View File

@ -9,7 +9,7 @@
# See the License for more information. # See the License for more information.
#============================================================================= #=============================================================================
cmake_minimum_required(VERSION 2.6.3) cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(FortranCInterface C Fortran) project(FortranCInterface C Fortran)
include(${FortranCInterface_BINARY_DIR}/Input.cmake OPTIONAL) include(${FortranCInterface_BINARY_DIR}/Input.cmake OPTIONAL)

View File

@ -9,7 +9,7 @@
# See the License for more information. # See the License for more information.
#============================================================================= #=============================================================================
cmake_minimum_required(VERSION 2.7) cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(VerifyFortranC C Fortran) project(VerifyFortranC C Fortran)
option(VERIFY_CXX "Whether to verify C++ and Fortran" OFF) option(VERIFY_CXX "Whether to verify C++ and Fortran" OFF)

View File

@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 2.8) cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(IntelFortranImplicit Fortran) project(IntelFortranImplicit Fortran)
add_custom_command( add_custom_command(
OUTPUT output.cmake OUTPUT output.cmake