We're trying to use CMake for every arch, so make sure the Windows specific
flag is conditional. Also remove the -DWINDOWS as it is unnecessary (zlib
checks WIN32 as well in all relevant cases).
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4312 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/zlib/CMakeLists.txt b/common/zlib/CMakeLists.txt
index 3f1db1b..69f1c9f 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