From 9e878a23c3ebecce4853ce281c617f42362e3ec0 Mon Sep 17 00:00:00 2001 From: IronsDu Date: Wed, 9 May 2018 09:48:20 +0800 Subject: [PATCH] fix error when install args under linux fix Error at ports/args/portfile.cmake:13 (file): `file COPY cannot find` --- ports/args/portfile.cmake | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ports/args/portfile.cmake b/ports/args/portfile.cmake index 29d76b81f2..8192848dca 100644 --- a/ports/args/portfile.cmake +++ b/ports/args/portfile.cmake @@ -9,9 +9,14 @@ vcpkg_from_github( HEAD_REF master ) +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA +) + # Put the licence file where vcpkg expects it -file(COPY ${SOURCE_PATH}/license DESTINATION ${CURRENT_PACKAGES_DIR}/share/args) -file(RENAME ${CURRENT_PACKAGES_DIR}/share/args/license ${CURRENT_PACKAGES_DIR}/share/args/copyright) +file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/args) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/args/LICENSE ${CURRENT_PACKAGES_DIR}/share/args/copyright) # Copy the args header files file(INSTALL ${SOURCE_PATH}/ DESTINATION ${CURRENT_PACKAGES_DIR}/include FILES_MATCHING PATTERN "*.hxx")