Commit 014f1d16 authored by Davis King's avatar Davis King

Minor change to avoid warnings from newer cmake

parent 493c713a
...@@ -12,6 +12,7 @@ set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required ...@@ -12,6 +12,7 @@ set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
# Suppress cmake warnings about changes in new versions. # Suppress cmake warnings about changes in new versions.
if(COMMAND cmake_policy) if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW) cmake_policy(SET CMP0003 NEW)
cmake_policy(SET CMP0054 NEW)
endif() endif()
......
...@@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 2.6.4) ...@@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 2.6.4)
set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
cmake_policy(SET CMP0054 NEW)
# Don't add dlib if it's already been added to the cmake project # Don't add dlib if it's already been added to the cmake project
if (NOT TARGET dlib) if (NOT TARGET dlib)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment