diff --git a/src/vcpkg/postbuildlint.cpp b/src/vcpkg/postbuildlint.cpp index c7c0da2ef3..351c942671 100644 --- a/src/vcpkg/postbuildlint.cpp +++ b/src/vcpkg/postbuildlint.cpp @@ -394,8 +394,8 @@ 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 configure_file(\"${{CURRENT_BUILDTREES_DIR}}/{}/{}\" " + "\"${{CURRENT_PACKAGES_DIR}}/share/{}/copyright\" COPYONLY)\n", relative_path.generic_u8string(), found_file.filename(), spec.name()));