Skip to content

Commit

Permalink
Remove explicit checks for STREQUAL ""
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas1664 committed Jul 7, 2022
1 parent 034b8ec commit 925ffce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/cmake/vcpkg_install_copyright.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function(vcpkg_install_copyright)
if(FILE_LIST_LENGTH LESS_EQUAL 0)
message(FATAL_ERROR "FILE_LIST must contain at least one file")
elseif(FILE_LIST_LENGTH EQUAL 1)
if(arg_COMMENT AND NOT arg_COMMENT EQUALS "")
if(arg_COMMENT)
file(READ "${arg_FILE_LIST}" out_string)
else()
file(INSTALL "${arg_FILE_LIST}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
Expand All @@ -30,7 +30,7 @@ function(vcpkg_install_copyright)
endforeach()
endif()

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

Expand Down

0 comments on commit 925ffce

Please sign in to comment.