Don't use -fvisibility=hidden on Windows, since MinGW doesn't support it. :(
authorRyan C. Gordon <icculus@icculus.org>
Sun, 12 Jul 2009 16:43:59 -0400
changeset 1009 56a3873c63e4
parent 1006 139e2ab9e303
child 1011 6bc1363ad17d
Don't use -fvisibility=hidden on Windows, since MinGW doesn't support it. :(
CMakeLists.txt
--- a/CMakeLists.txt	Wed Jul 08 18:46:54 2009 -0400
+++ b/CMakeLists.txt	Sun Jul 12 16:43:59 2009 -0400
@@ -67,9 +67,10 @@
     " PHYSFS_IS_GCC4)
 
     IF(PHYSFS_IS_GCC4)
-        IF(NOT OS2 AND NOT SOLARIS) # Not supported on OS/2 or Solaris.
+        # Not supported on several operating systems at this time.
+        IF(NOT OS2 AND NOT SOLARIS AND NOT WINDOWS) 
             ADD_DEFINITIONS(-fvisibility=hidden)
-        ENDIF(NOT OS2 AND NOT SOLARIS)
+        ENDIF(NOT OS2 AND NOT SOLARIS AND NOT WINDOWS)
     ENDIF(PHYSFS_IS_GCC4)
 ENDIF(CMAKE_COMPILER_IS_GNUCC)