File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
12
12
# Suppress cmake warnings about changes in new versions.
13
13
if (COMMAND cmake_policy)
14
14
cmake_policy (SET CMP0003 NEW)
15
- cmake_policy (SET CMP0054 NEW)
15
+ if (POLICY CMP0054)
16
+ cmake_policy (SET CMP0054 NEW)
17
+ endif ()
16
18
endif ()
17
19
18
20
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ cmake_minimum_required(VERSION 2.6.4)
3
3
4
4
5
5
set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
6
- cmake_policy(SET CMP0054 NEW)
6
+ if (POLICY CMP0054)
7
+ cmake_policy(SET CMP0054 NEW)
8
+ endif()
7
9
8
10
# Don't add dlib if it's already been added to the cmake project
9
11
if (NOT TARGET dlib)
You can’t perform that action at this time.
0 commit comments