Skip to content

Commit 598dcac

Browse files
committed
Add PNG::PNG ALIAS target
1 parent 4a4ee28 commit 598dcac

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cmake/Config.cmake.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,12 @@ include(CMakeFindDependencyMacro)
33
find_dependency(ZLIB CONFIG)
44

55
include("${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake")
6+
7+
if(NOT TARGET PNG::PNG)
8+
set_target_properties(
9+
PNG::png
10+
PROPERTIES
11+
IMPORTED_GLOBAL True
12+
)
13+
add_library(PNG::PNG ALIAS PNG::png)
14+
endif()

0 commit comments

Comments
 (0)