Skip to content

Commit

Permalink
[ci skip] Billy CR
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas1664 committed Jul 6, 2022
1 parent 1ad0b9c commit fc02ce2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scripts/cmake/vcpkg_install_copyright.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,14 @@ function(vcpkg_install_copyright)
else()
foreach(file_item IN LISTS arg_FILE_LIST)

if(NOT EXISTS "${file_item}" OR IS_DIRECTORY "${file_item}")
message(FATAL_ERROR "The file ${file_item} does not exist or is a directory.")
endif()

get_filename_component(file_name ${file_item} NAME)
get_filename_component(file_name "${file_item}" NAME)
file(READ "${file_item}" file_contents)

string(APPEND out_string "${file_name}:\n\n${file_contents}\n\n")
endforeach()
endif()

if(arg_COMMENT AND NOT arg_COMMENT EQUALS "")
if(arg_COMMENT AND NOT arg_COMMENT STREQUAL "")
string(PREPEND out_string "${arg_COMMENT}\n\n")
endif()

Expand Down

0 comments on commit fc02ce2

Please sign in to comment.