Skip to content

Commit b9deee1

Browse files
committed
fixup! vcxproj: automatically initialize the vcpkg system
The three static libraries (libgit, xdiff and vcs-svn) do not rely on any vcpkg-generated libraries, and therefore the <VCPKGLibs> entry is empty. Visual Studio likes to insert a line break into such empty entries, so we should, too. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent e7621d8 commit b9deee1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/buildsystems/Generators/Vcxproj.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ sub createProject {
7474
$cflags =~ s/</&lt;/g;
7575
$cflags =~ s/>/&gt;/g;
7676

77-
my $libs_release = '';
78-
my $libs_debug = '';
77+
my $libs_release = "\n ";
78+
my $libs_debug = "\n ";
7979
if (!$static_library) {
8080
$libs_release = join(";", sort(grep /^(?!libgit\.lib|xdiff\/lib\.lib|vcs-svn\/lib\.lib)/, @{$$build_structure{"$prefix${name}_LIBS"}}));
8181
$libs_debug = $libs_release;

0 commit comments

Comments
 (0)