From 0591528cbfde14ccfd3900c3fb19aba382c05349 Mon Sep 17 00:00:00 2001 From: Lily <47812810+LilyWangL@users.noreply.github.com> Date: Wed, 5 Feb 2020 05:32:09 +0800 Subject: [PATCH] [halide] Fix can't be found by cmake. (#8803) * [halide] Fix can't be found by cmake. * Remove include(vcpkg_common_functions) --- ports/halide/CONTROL | 2 +- ports/halide/portfile.cmake | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ports/halide/CONTROL b/ports/halide/CONTROL index 68360baf8d9..7ad30fb6d98 100644 --- a/ports/halide/CONTROL +++ b/ports/halide/CONTROL @@ -1,5 +1,5 @@ Source: halide -Version: release_2019_08_27 +Version: release_2019_08_27-1 Homepage: https://github.com/halide/Halide Description: Halide is a programming language designed to make it easier to write high-performance image processing code on modern machines. Build-Depends: llvm, openblas diff --git a/ports/halide/portfile.cmake b/ports/halide/portfile.cmake index be59c06af69..058610ad50a 100644 --- a/ports/halide/portfile.cmake +++ b/ports/halide/portfile.cmake @@ -1,5 +1,3 @@ -include(vcpkg_common_functions) - vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO halide/Halide @@ -69,5 +67,7 @@ vcpkg_fixup_cmake_targets(CONFIG_PATH share/halide) vcpkg_copy_pdbs() file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/halide_config.cmake ${CURRENT_PACKAGES_DIR}/share/${PORT}/halide-config.cmake) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/halide_config.make ${CURRENT_PACKAGES_DIR}/share/${PORT}/halide-config.make) file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)