mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Added stuff to cmake to suppress warnings in newer versions of cmake.
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403241
This commit is contained in:
parent
192e139e60
commit
49854b5b29
@ -5,9 +5,15 @@
|
||||
|
||||
# setting this makes CMake allow normal looking if else statements
|
||||
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
|
||||
|
||||
cmake_minimum_required(VERSION 2.4)
|
||||
|
||||
# Suppress cmake warnings about changes in new versions.
|
||||
if(COMMAND cmake_policy)
|
||||
cmake_policy(SET CMP0003 NEW)
|
||||
if(POLICY CMP0015)
|
||||
cmake_policy(SET CMP0015 NEW)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user