[libplist,libusbmuxd] Set ONLY_DYNAMIC_LIBRARY instead of ONLY_STATIC_LIBRARY (#8392)

* [libplist] Set ONLY_DYNAMIC_LIBRARY instead of ONLY_STATIC_LIBRARY

libplist appears to always build as a dynamic library and the previous
ONLY_STATIC_LIBRARY option was causing the DLLs to not be installed.

Signed-off-by: Andrew Gunnerson <andrewgunnerson@gmail.com>

* [libusbmuxd] Set ONLY_DYNAMIC_LIBRARY instead of ONLY_STATIC_LIBRARY

libusbmuxd also always builds as a dynamic library (like libplist).

Signed-off-by: Andrew Gunnerson <andrewgunnerson@gmail.com>

* [libplist] Ensure app container bit is set for UWP DLLs

Signed-off-by: Andrew Gunnerson <andrewgunnerson@gmail.com>
This commit is contained in:
Andrew Gunnerson 2019-09-29 19:35:00 -04:00 committed by Curtis J Bezault
parent 1944bcf8b1
commit 4235c216ac
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
include(vcpkg_common_functions)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY ONLY_DYNAMIC_CRT)
vcpkg_check_linkage(ONLY_DYNAMIC_CRT ONLY_DYNAMIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
@ -14,6 +14,10 @@ vcpkg_from_github(
set(ENV{_CL_} "$ENV{_CL_} /GL-")
set(ENV{_LINK_} "$ENV{_LINK_} /LTCG:OFF")
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
set(ENV{_LINK_} "$ENV{_LINK_} /APPCONTAINER")
endif()
vcpkg_install_msbuild(
SOURCE_PATH ${SOURCE_PATH}
PROJECT_SUBPATH libplist.sln

View File

@ -1,6 +1,6 @@
include(vcpkg_common_functions)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY ONLY_DYNAMIC_CRT)
vcpkg_check_linkage(ONLY_DYNAMIC_CRT ONLY_DYNAMIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH