Suppress warning on apple platforms
This commit is contained in:
parent
2fc94b3fa9
commit
2441d473ec
@ -82,7 +82,7 @@ if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
|
||||
if(${CMAKE_CXX_COMPILER_ID} STREQUAL Clang)
|
||||
string(COMPARE GREATER ${CLANG_MAJOR} "3" IS_CLANG_GREATER_THAN_3_X)
|
||||
string(COMPARE GREATER ${CLANG_MINOR} "5" IS_CLANG_GREATER_THAN_3_5)
|
||||
if (IS_CLANG_GREATER_THAN_3_X OR IS_CLANG_GREATER_THAN_3_5)
|
||||
if ((IS_CLANG_GREATER_THAN_3_X OR IS_CLANG_GREATER_THAN_3_5) AND NOT APPLE)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-local-typedefs" )
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user