More Solaris fixes.

This commit is contained in:
Ryan C. Gordon 2009-04-13 03:40:02 -04:00
parent 3f0cffcc50
commit e1dee8e56a
1 changed files with 6 additions and 2 deletions

View File

@ -26,6 +26,10 @@ IF (CMAKE_SYSTEM MATCHES OS2)
SET(OS2 TRUE) SET(OS2 TRUE)
ENDIF (CMAKE_SYSTEM MATCHES OS2) ENDIF (CMAKE_SYSTEM MATCHES OS2)
IF(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
SET(SOLARIS TRUE)
ENDIF(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
INCLUDE(CheckIncludeFile) INCLUDE(CheckIncludeFile)
INCLUDE(CheckLibraryExists) INCLUDE(CheckLibraryExists)
INCLUDE(CheckCSourceCompiles) INCLUDE(CheckCSourceCompiles)
@ -63,9 +67,9 @@ IF(CMAKE_COMPILER_IS_GNUCC)
" PHYSFS_IS_GCC4) " PHYSFS_IS_GCC4)
IF(PHYSFS_IS_GCC4) IF(PHYSFS_IS_GCC4)
IF (NOT OS2) # Not supported on OS/2. IF((NOT OS2) AND (NOT SOLARIS)) # Not supported on OS/2 or Solaris.
ADD_DEFINITIONS(-fvisibility=hidden) ADD_DEFINITIONS(-fvisibility=hidden)
ENDIF (NOT OS2) ENDIF((NOT OS2) AND (NOT SOLARIS))
ENDIF(PHYSFS_IS_GCC4) ENDIF(PHYSFS_IS_GCC4)
ENDIF(CMAKE_COMPILER_IS_GNUCC) ENDIF(CMAKE_COMPILER_IS_GNUCC)