diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/zlib/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/zlib/CMakeLists.txt b/common/zlib/CMakeLists.txt index 3f1db1b8..69f1c9f9 100644 --- a/common/zlib/CMakeLists.txt +++ b/common/zlib/CMakeLists.txt @@ -1,4 +1,8 @@ -add_definitions(-DNO_VIZ -DWINDOWS) +# It seems like gcc for Win32 doesn't support the visibility attribute, +# so disable it to make it stop complaining. +if(WIN32) + add_definitions(-DNO_VIZ) +endif() add_library(zlib STATIC adler32.c |