From 9b26f1e82ee7026d61ed84d0bff5de5aa69bd0d1 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sun, 22 Aug 2021 13:14:44 +0200 Subject: [PATCH] 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' --- lib/pack/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0