vcpkg/ports/rsasynccpp/portfile.cmake
Billy O'Neal 4d2e253e42
Avoid recalculating the default msbuild settings. (#31325)
* Fix the `vcpkg_install_msbuild` docs to reflect handling of x86==Win32.

See:
* https://github.com/microsoft/vcpkg/pull/28119#issuecomment-1336270264
* https://github.com/microsoft/vcpkg/issues/28076

* Remove overriding-with-the-default discovered in https://github.com/microsoft/vcpkg/pull/28119#issuecomment-1336270264

hunspell and mp3lame are left alone because they do other things with the resulting variable.

* Remove nonexistent reference to `MSBUILD_PLATFORM` variable.

* Simplify getting to x86, as discovered in https://github.com/microsoft/vcpkg/pull/28119#issuecomment-1336270264

* Version DB

* Whoops patches shouldn't be quoted.

* Delete vcpkg_install_msbuild.md

Docs changes have been migrated in microsoft/vcpkg-docs#21

* Update ocilib.json

* Update ocilib.json

---------

Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
2023-05-09 14:56:22 -07:00

41 lines
1.3 KiB
CMake

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO renestein/Rstein.AsyncCpp
REF 0.0.7
SHA512 b4cc1c68b6fc7bb8b418457ba18b834769abec07e44305955214f8918cc57f85c4258a0521ea55388fab3ec9724488e506d2b114c765b804991c38bf33133c55
HEAD_REF master
)
if("lib-cl-win-legacy-await" IN_LIST FEATURES)
if (VCPKG_CRT_LINKAGE MATCHES "static")
set(RELEASE_CONFIGURATION "ReleaseMT_VSAWAIT")
set(DEBUG_CONFIGURATION "DebugMT_VSAWAIT")
else()
set(RELEASE_CONFIGURATION "Release_VSAWAIT")
set(DEBUG_CONFIGURATION "Debug_VSAWAIT")
endif()
else()
if (VCPKG_CRT_LINKAGE MATCHES "static")
set(RELEASE_CONFIGURATION "ReleaseMT")
set(DEBUG_CONFIGURATION "DebugMT")
else()
set(RELEASE_CONFIGURATION "Release")
set(DEBUG_CONFIGURATION "Debug")
endif()
endif()
vcpkg_install_msbuild(
SOURCE_PATH "${SOURCE_PATH}"
PROJECT_SUBPATH RStein.AsyncCppLib.sln
LICENSE_SUBPATH LICENSE
PLATFORM "${TRIPLET_SYSTEM_ARCH}"
DEBUG_CONFIGURATION "${DEBUG_CONFIGURATION}"
RELEASE_CONFIGURATION "${RELEASE_CONFIGURATION}"
)
file(COPY "${SOURCE_PATH}/RStein.AsyncCpp/"
DESTINATION "${CURRENT_PACKAGES_DIR}/include/asynccpp"
FILES_MATCHING PATTERN "*.h")