]> granicus.if.org Git - graphviz/commitdiff
lib/gvpr: CMake: define EXPORT_GVPR
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Thu, 23 Sep 2021 21:51:41 +0000 (23:51 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 26 Sep 2021 06:36:52 +0000 (08:36 +0200)
Without this change, an upcoming commit that defines GVDLL would cause
a warning like this:

C:\Users\magja\graphviz\lib\gvpr\gvpr.c(931,1): warning C4273: 'gvpr': inconsistent dll linkage [C:\Users\magja\graphviz\build\lib\gvpr\gvpr.vcxproj]

lib/gvpr/CMakeLists.txt

index b99ed35c7a161028f126acda41c575b9a0febb23..e812381a822f006b52fc4e56e8c8daf7e91851ed 100644 (file)
@@ -1,3 +1,5 @@
+add_definitions(-DEXPORT_GVPR)
+
 add_library(gvpr STATIC
     # Header files
     actions.h