]> source.dussan.org Git - tigervnc.git/commitdiff
We're trying to use CMake for every arch, so make sure the Windows specific
authorPierre Ossman <ossman@cendio.se>
Thu, 3 Mar 2011 09:25:56 +0000 (09:25 +0000)
committerPierre Ossman <ossman@cendio.se>
Thu, 3 Mar 2011 09:25:56 +0000 (09:25 +0000)
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

common/zlib/CMakeLists.txt

index 3f1db1b8bd8039d86f9abb93514faa04b556baea..69f1c9f9badef7d6a79e73a2054a5e5b6ff84de5 100644 (file)
@@ -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