aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-02-23 22:26:31 -0800
committerRobert Schumacher <roschuma@microsoft.com>2018-02-23 22:26:31 -0800
commitfee4acc543e3801eed474495061875d0484e0bd3 (patch)
treec5aff86dd2243c0863bba729ab81e236a84505a6
parentdfa621039e69a4a42875783f533d1f201bdcc76b (diff)
downloadvcpkg-fee4acc543e3801eed474495061875d0484e0bd3.tar.gz
vcpkg-fee4acc543e3801eed474495061875d0484e0bd3.zip
[unrar] Improve error message during static builds
-rw-r--r--ports/unrar/portfile.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/ports/unrar/portfile.cmake b/ports/unrar/portfile.cmake
index 294fe9ac2..0528c8b97 100644
--- a/ports/unrar/portfile.cmake
+++ b/ports/unrar/portfile.cmake
@@ -5,8 +5,8 @@ set(UNRAR_FILENAME unrarsrc-${UNRAR_VERSION}.tar.gz)
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 "A static build is included with the dynamic build. Try VCPKG INSTALL UNRAR:X86-WINDOWS UNRAR:X64-WINDOWS")
+if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ message(FATAL_ERROR "Unrar does not currently support building statically")
endif()
#SRC
@@ -32,6 +32,7 @@ file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/unrar.dll DESTINAT
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/unrar.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/unrar.dll DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/unrar.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
+
vcpkg_copy_pdbs()
#COPYRIGHT