[libharu]fix build failure. (#5628)

* [libharu]fix build failure.

* [libharu]Comment more code
This commit is contained in:
JackBoosY 2019-03-31 14:38:36 +08:00 committed by Phil Christensen
parent 125df93c5e
commit 3cc4de62c1
3 changed files with 23 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Source: libharu
Version: 2017-08-15-d84867ebf9f-4
Version: 2017-08-15-d84867ebf9f-5
Description: libharu - free PDF library
Build-Depends: zlib, libpng

View File

@ -0,0 +1,21 @@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9d2a604..be8e964 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -79,11 +79,11 @@ if(LIBHPDF_STATIC)
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
)
- if(WIN32 AND NOT CYGWIN)
- foreach(addlib ${ADDITIONAL_LIBRARIES})
- install(FILES ${addlib} DESTINATION lib)
- endforeach(addlib)
- endif(WIN32 AND NOT CYGWIN)
+ #if(WIN32 AND NOT CYGWIN)
+ #foreach(addlib ${ADDITIONAL_LIBRARIES})
+ #install(FILES ${addlib} DESTINATION lib)
+ #endforeach(addlib)
+ #endif(WIN32 AND NOT CYGWIN)
endif(LIBHPDF_STATIC)
if(LIBHPDF_SHARED)
add_library(${LIBHPDF_NAME} SHARED ${LIBHPDF_SRCS})

View File

@ -5,6 +5,7 @@ vcpkg_from_github(
REF d84867ebf9f3de6afd661d2cdaff102457fbc371
SHA512 789579dd52c1056ae90a4ce5360c26ba92cadae5341a3901c4159afe624129a1f628fa6412952a398e048b0e5040c93f7ed5b4e4bc620a22d897098298fe2a99
HEAD_REF master
PATCHES fix-build-fail.patch
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" LIBHPDF_STATIC)