Update CMakeLists.txt

pull/3889/head
Kim Kulling 2021-06-03 23:42:07 +02:00 committed by GitHub
parent a716f741d8
commit 742250c5fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -1029,12 +1029,12 @@ ELSE ()
ENDIF ()
# RapidJSON
INCLUDE_DIRECTORIES( "../contrib" )
IF(ASSIMP_HUNTER_ENABLED)
hunter_add_package(RapidJSON)
find_package(RapidJSON CONFIG REQUIRED)
ELSE()
INCLUDE_DIRECTORIES("../contrib/rapidjson/include")
INCLUDE_DIRECTORIES( "../contrib" )
INCLUDE_DIRECTORIES("../contrib/pugixml/src")
ADD_DEFINITIONS( -DRAPIDJSON_HAS_STDSTRING=1)
option( ASSIMP_RAPIDJSON_NO_MEMBER_ITERATOR "Suppress rapidjson warning on MSVC (NOTE: breaks android build)" ON )