[assimp] Requires rapidjson

This commit is contained in:
Robert Schumacher 2018-10-23 10:23:41 -07:00
parent bdb1ae9907
commit ece1e7a67a
2 changed files with 6 additions and 9 deletions

View File

@ -1,4 +1,4 @@
Source: assimp
Version: 4.1.0-2
Version: 4.1.0-3
Description: The Open Asset import library
Build-Depends: zlib
Build-Depends: zlib, rapidjson

View File

@ -6,23 +6,20 @@ vcpkg_from_github(
REF v4.1.0
SHA512 5f1292de873ae16c9921d1d44f2871474d74c0ddfd76cc928a7d9b3e03aa6eca4cc72af0513da20a86d09c55d48646e610fd4a4f2b05364f08ad09cf27cbc67a
HEAD_REF master
)
vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
PATCHES
"${CMAKE_CURRENT_LIST_DIR}/dont-overwrite-prefix-path.patch"
"${CMAKE_CURRENT_LIST_DIR}/uninitialized-variable.patch"
dont-overwrite-prefix-path.patch
uninitialized-variable.patch
)
file(REMOVE ${SOURCE_PATH}/cmake-modules/FindZLIB.cmake)
file(REMOVE_RECURSE ${SOURCE_PATH}/contrib/zlib)
file(REMOVE_RECURSE ${SOURCE_PATH}/contrib/zlib ${SOURCE_PATH}/contrib/gtest ${SOURCE_PATH}/contrib/rapidjson)
set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS -DASSIMP_BUILD_TESTS=OFF
-DASSIMP_BUILD_ASSIMP_VIEW=OFF
-DASSIMP_BUILD_ZLIB=OFF