Made cmake scripts uniformly require cmake version 2.8.4.

This commit is contained in:
Davis King 2015-10-11 08:52:31 -04:00
parent 839acd3e57
commit edf0310a4e
3 changed files with 3 additions and 7 deletions

View File

@ -3,11 +3,8 @@
# information about it at http://www.cmake.org
#
# setting this makes CMake allow normal looking if else statements
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
cmake_minimum_required(VERSION 2.4)
set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
cmake_minimum_required(VERSION 2.8.4)
# default to a Release build (except if CMAKE_BUILD_TYPE is set)
include(release_build_by_default)

View File

@ -3,10 +3,9 @@
# including it
set(DLIB_IN_PROJECT_BUILD true)
cmake_minimum_required(VERSION 2.6.4)
cmake_minimum_required(VERSION 2.8.4)
set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
if (POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()

View File

@ -2,7 +2,7 @@
# Including this cmake script into your cmake project will cause visual studio
# to build your project against the static C runtime.
cmake_minimum_required(VERSION 2.6.4)
cmake_minimum_required(VERSION 2.8.4)
if (POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()