From 3b91814f20a69b353e28a5744b7d8b299b3a7212 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 13 Apr 2009 17:58:35 -0400 Subject: [PATCH] Ignore empty files (like #ifdef'd out platform code) on Sun Studio compiler. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8158953..d5f32de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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.