Skip to content

Commit ca3536e

Browse files
committed
hunter: require CMake 3.11
1 parent 60336b5 commit ca3536e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
# For conditions of distribution and use, see the disclaimer
2020
# and license in png.h
2121

22-
cmake_minimum_required(VERSION 3.1)
23-
cmake_policy(VERSION 3.1)
22+
cmake_minimum_required(VERSION 3.11)
23+
cmake_policy(VERSION 3.11)
2424
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
2525

2626
include("cmake/HunterGate.cmake")

cmake/Config.cmake.in

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ find_dependency(ZLIB CONFIG)
44

55
include("${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake")
66

7-
# ALIAS for imported target requires CMake >= 3.11:
8-
# - https://cmake.org/cmake/help/latest/release/3.11.html#other
9-
if(NOT CMAKE_VERSION VERSION_LESS 3.11 AND NOT TARGET PNG::PNG)
7+
if(NOT TARGET PNG::PNG)
108
set_target_properties(
119
PNG::png
1210
PROPERTIES

0 commit comments

Comments
 (0)