Skip to content

Commit

Permalink
Ignore empty files (like #ifdef'd out platform code) on Sun Studio co…
Browse files Browse the repository at this point in the history
…mpiler.
  • Loading branch information
icculus committed Apr 13, 2009
1 parent 05e3864 commit 3b91814
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Expand Up @@ -73,6 +73,10 @@ IF(CMAKE_COMPILER_IS_GNUCC)
ENDIF(PHYSFS_IS_GCC4)
ENDIF(CMAKE_COMPILER_IS_GNUCC)

IF(CMAKE_C_COMPILER_ID STREQUAL "SunPro")
ADD_DEFINITIONS(-erroff=E_EMPTY_TRANSLATION_UNIT)
ENDIF(CMAKE_C_COMPILER_ID STREQUAL "SunPro")

IF(MSVC)
# VS.NET 8.0 got really really anal about strcpy, etc, which even if we
# cleaned up our code, zlib, etc still use...so disable the warning.
Expand Down

0 comments on commit 3b91814

Please sign in to comment.