From 710d7ab6786d2c9cb80b5ae16801aaf198ae53e7 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sun, 4 Oct 2020 14:23:23 +0200 Subject: [PATCH] Replace getopt subproject with vcpkg getopt lib for mingle in MSBuild Also fix edgepaint option parsing in MSBuild by not using Unicode that for some reason caused the new getopt library to not find any options. Towards https://gitlab.com/graphviz/graphviz/-/issues/1820. --- cmd/mingle/mingle.vcxproj | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/cmd/mingle/mingle.vcxproj b/cmd/mingle/mingle.vcxproj index e24c34dec..3f477a750 100644 --- a/cmd/mingle/mingle.vcxproj +++ b/cmd/mingle/mingle.vcxproj @@ -20,13 +20,11 @@ Application v142 - Unicode true Application v142 - Unicode @@ -54,7 +52,7 @@ Disabled - $(SolutionDir)windows\include;$(SolutionDir)windows\getopt;$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;%(AdditionalIncludeDirectories) + $(SolutionDir)windows\include;$(SolutionDir)windows\dependencies\libraries\vcpkg\installed\x86-windows\include;$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;%(AdditionalIncludeDirectories) _DEBUG;_LIB;%(PreprocessorDefinitions) true EnableFastChecks @@ -66,19 +64,21 @@ 4996 - $(OutDir);$(SolutionDir)windows\getopt + $(OutDir);$(SolutionDir)windows\dependencies\libraries\vcpkg\installed\x86-windows\lib true Console MachineX86 getopt.lib;cdt.lib;cgraph.lib;gvc.lib;ingraphs.lib;sparse.lib;sfdp.lib;minglelib.lib;neatogen.lib;rbtree.lib;%(AdditionalDependencies) - + + copy $(SolutionDir)windows\dependencies\libraries\vcpkg\installed\x86-windows\bin\getopt.dll $(OutDir)getopt.dll + MaxSpeed true - $(SolutionDir)windows\include;$(SolutionDir)windows\getopt;$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;%(AdditionalIncludeDirectories) + $(SolutionDir)windows\include;$(SolutionDir)windows\dependencies\libraries\vcpkg\installed\x86-windows\include;$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;%(AdditionalIncludeDirectories) NDEBUG;_LIB;%(PreprocessorDefinitions) true @@ -87,7 +87,7 @@ 4996 - $(OutDir);$(SolutionDir)windows\getopt + $(OutDir);$(SolutionDir)windows\dependencies\libraries\vcpkg\installed\x86-windows\lib No Console true @@ -95,7 +95,9 @@ MachineX86 getopt.lib;cdt.lib;cgraph.lib;gvc.lib;ingraphs.lib;sparse.lib;sfdp.lib;minglelib.lib;neatogen.lib;rbtree.lib;%(AdditionalDependencies) - + + copy $(SolutionDir)windows\dependencies\libraries\vcpkg\installed\x86-windows\bin\getopt.dll $(OutDir)getopt.dll + -- 2.40.0