Skip to content

Commit 46f4e79

Browse files
committed
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.
1 parent c992d4c commit 46f4e79

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/vcpkg_ports/camp/portfile.cmake

+6-1
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,9 @@ else()
8282
endif()
8383

8484
# Put the license file where vcpkg expects it
85-
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/camp RENAME copyright)
85+
# Note: LICENSE occasionally cannot be found
86+
if(EXISTS "${SOURCE_PATH}/LICENSE")
87+
file(INSTALL ${SOURCE_PATH}/LICENSE
88+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/camp
89+
RENAME copyright)
90+
endif()

0 commit comments

Comments
 (0)