forked from alamaison/libpng
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alias target PNG::PNG is only added if the CMake version installed is greater or equal 3.11. Also fixed version check for 3.12 to not use GREATER_EQUAL that was not introduced until version 3.7.
- Loading branch information
Showing
2 changed files
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,9 @@ find_dependency(ZLIB CONFIG) | |
|
||
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]") | ||
|
||
if(NOT TARGET PNG::PNG) | ||
# ALIAS for imported target requires CMake >= 3.11: | ||
# - https://cmake.org/cmake/help/latest/release/3.11.html#other | ||
if(NOT CMAKE_VERSION VERSION_LESS 3.11 AND NOT TARGET PNG::PNG) | ||
set_target_properties( | ||
PNG::png | ||
PROPERTIES | ||
|