From 46f4e79441500de5c0684978bbfa34f39f7c7936 Mon Sep 17 00:00:00 2001 From: Kenny Weiss Date: Sun, 24 Mar 2024 19:42:34 -0700 Subject: [PATCH] Fix vcpkg port of camp Occasionally, the license file cannot be found. Check for its existence before moving/renaming it rather than fail the TPL build. --- scripts/vcpkg_ports/camp/portfile.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/vcpkg_ports/camp/portfile.cmake b/scripts/vcpkg_ports/camp/portfile.cmake index 0198cdb488..f100d5fa65 100644 --- a/scripts/vcpkg_ports/camp/portfile.cmake +++ b/scripts/vcpkg_ports/camp/portfile.cmake @@ -82,4 +82,9 @@ else() endif() # Put the license file where vcpkg expects it -file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/camp RENAME copyright) +# Note: LICENSE occasionally cannot be found +if(EXISTS "${SOURCE_PATH}/LICENSE") + file(INSTALL ${SOURCE_PATH}/LICENSE + DESTINATION ${CURRENT_PACKAGES_DIR}/share/camp + RENAME copyright) +endif()