]> granicus.if.org Git - graphviz/commitdiff
cdt: MSBuild: define GVDLL to ensure correct storage-class attributes
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 1 Jan 2022 16:37:22 +0000 (17:37 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 5 Jan 2022 06:30:24 +0000 (07:30 +0100)
An upcoming commit will change the storage-class attributes to be
controlled by the GVDLL symbol in cdt.h.

Without this change, the following error would occur:

LINK : fatal error LNK1104: cannot open file 'C:\GitLab-Runner\builds\magjac\graphviz\Debug\Graphviz\bin\cdt.lib' [C:\GitLab-Runner\builds\magjac\graphviz\lib\pathplan\Pathplan.vcxproj]

Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.

lib/cdt/cdt.vcxproj

index 07321d01373fd72e2c6213cd09f5f218d8f789d7..c810671e42b42d7a99b78348297caffa37a23682 100644 (file)
@@ -59,7 +59,7 @@
       <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
       <EnablePREfast>true</EnablePREfast>
       <DisableSpecificWarnings>4996;4706</DisableSpecificWarnings>
-      <PreprocessorDefinitions>EXPORT_CDT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>GVDLL;EXPORT_CDT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     </ClCompile>
     <Link>
       <GenerateDebugInformation>true</GenerateDebugInformation>
@@ -75,7 +75,7 @@
       <WarningLevel>Level4</WarningLevel>
       <EnablePREfast>true</EnablePREfast>
       <DisableSpecificWarnings>4996;4706</DisableSpecificWarnings>
-      <PreprocessorDefinitions>EXPORT_CDT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>GVDLL;EXPORT_CDT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     </ClCompile>
     <Link>
       <AdditionalLibraryDirectories>