From 014f1d16548b149bdc9acff2eab3b51d7877ee39 Mon Sep 17 00:00:00 2001 From: Davis King <davis@dlib.net> Date: Sat, 20 Dec 2014 16:01:02 -0500 Subject: [PATCH] Minor change to avoid warnings from newer cmake --- dlib/CMakeLists.txt | 1 + dlib/cmake | 1 + 2 files changed, 2 insertions(+) diff --git a/dlib/CMakeLists.txt b/dlib/CMakeLists.txt index 33b45614..6f90f3ee 100644 --- a/dlib/CMakeLists.txt +++ b/dlib/CMakeLists.txt @@ -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. if(COMMAND cmake_policy) cmake_policy(SET CMP0003 NEW) + cmake_policy(SET CMP0054 NEW) endif() diff --git a/dlib/cmake b/dlib/cmake index d7b72492..63d7526f 100644 --- a/dlib/cmake +++ b/dlib/cmake @@ -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 +cmake_policy(SET CMP0054 NEW) # Don't add dlib if it's already been added to the cmake project if (NOT TARGET dlib) -- 2.18.0