From 62d2caed62348994fb83cb105fcd2f4a247f5440 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Fri, 4 Oct 2019 15:34:40 -0400 Subject: Handle spaces in OpenSSL install location for MSVC First, make sure that the .exe name is quoted when trying to get the version number. Also, don't quote the lib name for using in the project files if it's already been quoted. This second change applies to all libraries, not just OpenSSL. This has clearly been broken forever, so backpatch to all live branches. --- src/tools/msvc/Project.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tools/msvc/Project.pm') diff --git a/src/tools/msvc/Project.pm b/src/tools/msvc/Project.pm index 9817b9439a9..1c9a8cda5c4 100644 --- a/src/tools/msvc/Project.pm +++ b/src/tools/msvc/Project.pm @@ -126,7 +126,8 @@ sub AddLibrary { my ($self, $lib, $dbgsuffix) = @_; - if ($lib =~ m/\s/) + # quote lib name if it has spaces and isn't already quoted + if ($lib =~ m/\s/ && $lib !~ m/^[&]quot;/) { $lib = '"' . $lib . """; } -- cgit v1.2.3