From: Magnus Jacobsson Date: Sun, 22 Aug 2021 11:14:44 +0000 (+0200) Subject: pack: CMake: set also _BLD_gvc X-Git-Tag: 2.49.2~39^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b26f1e82ee7026d61ed84d0bff5de5aa69bd0d1;p=graphviz pack: CMake: set also _BLD_gvc This is a temporary measure until an upcoming commit series cleans up the control of the Windows storage-class attributes. Without this change, an upcoming commit that defines GVDLL also for CMake builds, would cause many errors like this with minGW: pack/CMakeFiles/pack_obj.dir/ccomps.c.obj:ccomps.c:(.text+0x1c95): undefined reference to `__imp_Verbose' --- diff --git a/lib/pack/CMakeLists.txt b/lib/pack/CMakeLists.txt index 384d231d7..ba3d9419e 100644 --- a/lib/pack/CMakeLists.txt +++ b/lib/pack/CMakeLists.txt @@ -1,4 +1,4 @@ -add_definitions(-DGVC_EXPORTS) +add_definitions(-D_BLD_gvc -DGVC_EXPORTS) add_library(pack_obj OBJECT # Header files