Fix mac build by using the same warning for clang as gcc, namely -Wno-invalid-offsetof

This commit is contained in:
Dirk Van Gelder 2013-01-11 10:47:57 -08:00
parent 96520b4845
commit f2b40850d2

View File

@ -98,8 +98,8 @@ set(CMAKE_MODULE_PATH
${CMAKE_CURRENT_SOURCE_DIR}/cmake
)
# Disable spurrious offsetof warning in gcc builds
if(CMAKE_COMPILER_IS_GNUCC)
# Disable spurrious offsetof warning in gcc builds and clang
if (CMAKE_COMPILER_IS_GNUC OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
add_definitions("-Wno-invalid-offsetof")
endif()