mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 16:37:50 +08:00
174be48039
* [libpng] update to 1.7.38 * update version * update patch * update version
18 lines
691 B
Diff
18 lines
691 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index c01cdcb..0ad4ba4 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -1033,6 +1033,12 @@ if(NOT SKIP_INSTALL_EXPORT AND NOT SKIP_INSTALL_ALL)
|
|
install(EXPORT libpng
|
|
DESTINATION lib/libpng
|
|
FILE lib${PNG_LIB_NAME}.cmake)
|
|
+ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/libpng-config.cmake" "
|
|
+ include(CMakeFindDependencyMacro)
|
|
+ find_dependency(ZLIB)
|
|
+ include(\"\${CMAKE_CURRENT_LIST_DIR}/lib${PNG_LIB_NAME}.cmake\")
|
|
+ ")
|
|
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libpng-config.cmake" DESTINATION "${CMAKE_INSTALL_LIBDIR}/libpng")
|
|
endif()
|
|
|
|
# TODO: Create MSVC import lib for MinGW-compiled shared lib.
|