Skip to content

Commit

Permalink
Add ZLIB::ZLIB ALIAS target
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed May 25, 2019
1 parent 543b3a4 commit d0dc8b7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmake/Config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,12 @@

include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
check_required_components("@PROJECT_NAME@")

if(NOT TARGET ZLIB::ZLIB)
set_target_properties(
ZLIB::zlib
PROPERTIES
IMPORTED_GLOBAL True
)
add_library(ZLIB::ZLIB ALIAS ZLIB::zlib)
endif()

0 comments on commit d0dc8b7

Please sign in to comment.