From: Magnus Jacobsson Date: Thu, 23 Sep 2021 21:51:41 +0000 (+0200) Subject: lib/gvpr: CMake: define EXPORT_GVPR X-Git-Tag: 2.49.2~39^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25666e5c260a288475680c0afb88f7b27fb1eb0f;p=graphviz lib/gvpr: CMake: define EXPORT_GVPR 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] --- diff --git a/lib/gvpr/CMakeLists.txt b/lib/gvpr/CMakeLists.txt index b99ed35c7..e812381a8 100644 --- a/lib/gvpr/CMakeLists.txt +++ b/lib/gvpr/CMakeLists.txt @@ -1,3 +1,5 @@ +add_definitions(-DEXPORT_GVPR) + add_library(gvpr STATIC # Header files actions.h