CMakeLists.txt
changeset 989 70132355a297
parent 985 dc38a51538aa
child 990 c25717b5c165
equal deleted inserted replaced
988:27a1fb1cdc47 989:70132355a297
    70         IF((NOT OS2) AND (NOT SOLARIS)) # Not supported on OS/2 or Solaris.
    70         IF((NOT OS2) AND (NOT SOLARIS)) # Not supported on OS/2 or Solaris.
    71             ADD_DEFINITIONS(-fvisibility=hidden)
    71             ADD_DEFINITIONS(-fvisibility=hidden)
    72         ENDIF((NOT OS2) AND (NOT SOLARIS))
    72         ENDIF((NOT OS2) AND (NOT SOLARIS))
    73     ENDIF(PHYSFS_IS_GCC4)
    73     ENDIF(PHYSFS_IS_GCC4)
    74 ENDIF(CMAKE_COMPILER_IS_GNUCC)
    74 ENDIF(CMAKE_COMPILER_IS_GNUCC)
       
    75 
       
    76 IF(CMAKE_C_COMPILER_ID STREQUAL "SunPro")
       
    77     ADD_DEFINITIONS(-erroff=E_EMPTY_TRANSLATION_UNIT)
       
    78 ENDIF(CMAKE_C_COMPILER_ID STREQUAL "SunPro")
    75 
    79 
    76 IF(MSVC)
    80 IF(MSVC)
    77     # VS.NET 8.0 got really really anal about strcpy, etc, which even if we
    81     # VS.NET 8.0 got really really anal about strcpy, etc, which even if we
    78     #  cleaned up our code, zlib, etc still use...so disable the warning.
    82     #  cleaned up our code, zlib, etc still use...so disable the warning.
    79     ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS=1)
    83     ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS=1)