[flashlight-cpu] Update port (#17643)

* [flashlight-cpu] Update port

* Ran x-add-version --overwrite-version

* Use vcpkg_Fixup_cmake_targets, remove usage

* overwrite version

* bump port version

* x-add-version

* Update versions/f-/flashlight-cpu.json

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
This commit is contained in:
Jacob Kahn 2021-05-18 02:32:54 -05:00 committed by GitHub
parent a0bed69632
commit 8984f677a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 6 deletions

View File

@ -1,17 +1,18 @@
if (EXISTS "${CURRENT_INSTALLED_DIR}/share/flashlight-cuda")
message(FATAL_ERROR "flashlight-cuda is installed; only one Flashlight "
"backend package can be installed at once. Uninstall and try again:"
if (EXISTS "${CURRENT_INSTALLED_DIR}/share/flashlight")
message(FATAL_ERROR "Only one of flashlight-cpu and flashlight-cuda"
"can be installed at once. Uninstall and try again:"
"\n vcpkg remove flashlight-cuda\n")
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO flashlight/flashlight
REF 76f7fa7f5a162c73d6bf8befdb8e197a4dc7515d # 0.3 branch tip
SHA512 87786f9443d27ac9b513cf582caea13dccfa344e55a4970c0c2c7df7530260ad38cc578690ebf2fa256e8ea943abea547e0e6d5ee0ba090b336c4f7af8d2f53f
REF 626914e79073c5547513de649af706f7e2b796ad # 0.3 branch tip
SHA512 a22057cfa4cfe7acd95cbc5445a30870cce3cdde89066d1d75f40be0d73b069a49e89b226fe5337488cfe5618dd25958679c0636a3e4008312f01606328becfa
HEAD_REF master
)
################################### Build ###################################
# Default flags
set(FL_DEFAULT_VCPKG_CMAKE_FLAGS
-DFL_BUILD_TESTS=OFF
@ -43,6 +44,8 @@ vcpkg_configure_cmake(
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/flashlight-cpu TARGET_PATH share/flashlight)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

View File

@ -1,6 +1,7 @@
{
"name": "flashlight-cpu",
"version": "0.3",
"port-version": 1,
"description": "A C++ standalone library for machine learning. CPU backend.",
"homepage": "https://github.com/facebookresearch/flashlight",
"supports": "!(windows | osx)",

View File

@ -1990,7 +1990,7 @@
},
"flashlight-cpu": {
"baseline": "0.3",
"port-version": 0
"port-version": 1
},
"flashlight-cuda": {
"baseline": "0.3",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9de5ce0a5763ebc2b46378a46172b8cda7ac95c5",
"version": "0.3",
"port-version": 1
},
{
"git-tree": "63e05566899f6a034fb93cf6556cf3d5ca387f61",
"version": "0.3",