mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 02:49:01 +08:00
1c0c374e93
vcpkg.json and portfile.cmake disagreed. vcpkg.json: windows & x64 & !static portfile: !linux & !osx & !uwp & !x86 Also ci.baseline.txt has: libfabric:arm-uwp=fail libfabric:x64-linux=fail libfabric:x64-osx=fail libfabric:x64-uwp=fail libfabric:x64-windows-static=fail libfabric:x64-windows-static-md=fail I'm assuming "windows" means the same as !linux & !osx. I'm assuming "x64" is intended to be the same as "!x86" given the ci.baseline.txt entries. This means we need to add !uwp. In support of https://github.com/microsoft/vcpkg/pull/21502
37 lines
1.4 KiB
CMake
37 lines
1.4 KiB
CMake
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO ofiwg/libfabric
|
|
REF bcb41c462e1e38559c94096ac06e2f578b466882 # v1.13.2
|
|
HEAD_REF master
|
|
SHA512 b3ea464a402aa5b470ba5478350e23682488f785a3b2cb34df02f23d1663f097285f6795ab287db40b2a544c8e3969358a23165664e1fc39542038d726212e6c
|
|
PATCHES
|
|
add_additional_includes.patch
|
|
)
|
|
|
|
set(LIBFABRIC_RELEASE_CONFIGURATION "Release-v142")
|
|
set(LIBFABRIC_DEBUG_CONFIGURATION "Debug-v142")
|
|
|
|
vcpkg_install_msbuild(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PROJECT_SUBPATH libfabric.vcxproj
|
|
INCLUDES_SUBPATH include
|
|
LICENSE_SUBPATH COPYING
|
|
PLATFORM "x64"
|
|
RELEASE_CONFIGURATION ${LIBFABRIC_RELEASE_CONFIGURATION}
|
|
DEBUG_CONFIGURATION ${LIBFABRIC_RELEASE_CONFIGURATION}
|
|
USE_VCPKG_INTEGRATION
|
|
ALLOW_ROOT_INCLUDES
|
|
OPTIONS
|
|
/p:SolutionDir=${SOURCE_PATH}
|
|
/p:AdditionalIncludeDirectories="${CURRENT_INSTALLED_DIR}/include"
|
|
)
|
|
|
|
#Move includes under subdirectory to avoid colisions with other libraries
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/include" "${CURRENT_PACKAGES_DIR}/includetemp")
|
|
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/include")
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/includetemp" "${CURRENT_PACKAGES_DIR}/include/libfabric")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|