Merge pull request #3160 from Alisayyy-Yang/fixUnrar

Unrar buildsystem doesn't support static building. Building dynamic
This commit is contained in:
Alexander Karatarakis 2018-03-29 13:55:36 -07:00 committed by GitHub
commit e48a58b271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,8 @@ set(UNRAR_URL http://www.rarlab.com/rar/${UNRAR_FILENAME})
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/unrar)
if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
message(FATAL_ERROR "Unrar does not currently support building statically")
message(STATUS "Unrar buildsystem doesn't support static building. Building dynamic instead.")
set(VCPKG_LIBRARY_LINKAGE dynamic)
endif()
#SRC