mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[json-spirit] Fix link error C1128 (#5263)
* [json-spirit] Fix link error C1128 * Update patch file
This commit is contained in:
parent
6cd6a3a20c
commit
25e8a482a8
@ -1,4 +1,4 @@
|
||||
Source: json-spirit
|
||||
Version: 4.1.0
|
||||
Version: 4.1.0-1
|
||||
Description: json parser using boost library
|
||||
Build-Depends: boost-config, boost-integer, boost-smart-ptr, boost-variant, boost-spirit
|
||||
|
15
ports/json-spirit/Fix-link-error-C1128.patch
Normal file
15
ports/json-spirit/Fix-link-error-C1128.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 24b1caf..2aac0b0 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -60,7 +60,9 @@ endif()
|
||||
|
||||
message(${CMAKE_INSTALL_INCLUDEDIR})
|
||||
|
||||
-
|
||||
+if(MSVC)
|
||||
+add_definitions(/bigobj)
|
||||
+endif()
|
||||
set(CPACK_PACKAGE_VERSION_MAJOR 4)
|
||||
set(CPACK_PACKAGE_VERSION_MINOR 0)
|
||||
set(CPACK_PACKAGE_VERSION_PATCH 8)
|
@ -6,11 +6,9 @@ vcpkg_from_github(
|
||||
REF 5e16cca59b31d8beda0f07e3917ce11dcd43b3db
|
||||
SHA512 6ac0f15726391c9003e516213535c8d30e98b6c33bca0b03e9bf38e7085824bfc6cfaab267b1dfccbfcc567638d26f722d7e331f4e3b60d3acd5c717cb1fafcc
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES ${CMAKE_CURRENT_LIST_DIR}/dll-wins.patch
|
||||
PATCHES
|
||||
dll-wins.patch
|
||||
Fix-link-error-C1128.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
|
Loading…
x
Reference in New Issue
Block a user