Skip to content

Commit

Permalink
Fix vcpkg port of camp
Browse files Browse the repository at this point in the history
Occasionally, the license file cannot be found. Check for its existence
before moving/renaming it rather than fail the TPL build.
  • Loading branch information
kennyweiss committed Mar 25, 2024
1 parent c992d4c commit 46f4e79
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/vcpkg_ports/camp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 46f4e79

Please sign in to comment.