mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-28 14:21:07 +00:00
Fix mac build by using the same warning for clang as gcc, namely -Wno-invalid-offsetof
This commit is contained in:
parent
96520b4845
commit
f2b40850d2
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user