mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-01 21:58:55 +08:00
[libharu]fix build failure. (#5628)
* [libharu]fix build failure. * [libharu]Comment more code
This commit is contained in:
parent
125df93c5e
commit
3cc4de62c1
@ -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
|
||||
|
21
ports/libharu/fix-build-fail.patch
Normal file
21
ports/libharu/fix-build-fail.patch
Normal 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})
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user