Skip to content

Commit

Permalink
Update license install hint (#1116)
Browse files Browse the repository at this point in the history
* Update license install hint

* add relative path
  • Loading branch information
LilyWangLL authored Jun 30, 2023
1 parent 3d7d56e commit 2e68521
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/vcpkg/postbuildlint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,11 +396,9 @@ namespace vcpkg
1); // The +1 is needed to remove the "/"
const Path relative_path = found_relative_native;
msg_sink.print(Color::none,
fmt::format("\n configure_file(\"${{CURRENT_BUILDTREES_DIR}}/{}/{}\" "
"\"${{CURRENT_PACKAGES_DIR}}/share/{}/copyright\" COPYONLY)\n",
fmt::format("\n vcpkg_install_copyright(FILE_LIST \"${{SOURCE_PATH}}/{}/{}\")\n",
relative_path.generic_u8string(),
found_file.filename(),
spec.name()));
found_file.filename()));
}
else if (potential_copyright_files.size() > 1)
{
Expand Down

0 comments on commit 2e68521

Please sign in to comment.