Skip to content

Commit

Permalink
Revert "forces CMake use zlib version which is installed by vcpkg."
Browse files Browse the repository at this point in the history
This reverts commit d62dda3.
  • Loading branch information
patrigg committed Jan 5, 2017
1 parent 5a59fd7 commit 44c86f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
6 changes: 1 addition & 5 deletions ports/libpng/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ vcpkg_download_distfile(ARCHIVE
vcpkg_extract_source_archive(${ARCHIVE})
vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
PATCHES
"${CMAKE_CURRENT_LIST_DIR}/use-abort-on-all-platforms.patch"
"${CMAKE_CURRENT_LIST_DIR}/set_zlib_root.patch"
PATCHES "${CMAKE_CURRENT_LIST_DIR}/use-abort-on-all-platforms.patch"
)

if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
Expand All @@ -21,7 +19,6 @@ else()
set(PNG_STATIC_LIBS ON)
set(PNG_SHARED_LIBS OFF)
endif()
#message(STATUS ${CURRENT_INSTALL_DIR})

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
Expand All @@ -32,7 +29,6 @@ vcpkg_configure_cmake(
-DSKIP_INSTALL_PROGRAMS=ON
-DSKIP_INSTALL_EXECUTABLES=ON
-DSKIP_INSTALL_FILES=ON
-DINSTALLED_DIR:PATH=${CURRENT_INSTALLED_DIR}
OPTIONS_DEBUG
-DSKIP_INSTALL_HEADERS=ON
)
Expand Down
12 changes: 0 additions & 12 deletions ports/libpng/set_zlib_root.patch

This file was deleted.

0 comments on commit 44c86f5

Please sign in to comment.