Fix clang compiling

This commit is contained in:
Danila Malyutin 2015-10-13 23:32:25 +03:00
parent d8d09b5472
commit 92e90101e2

View File

@ -19,6 +19,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
# Warnings
add_compile_options(-Wno-attributes -Wno-enum-compare -Wno-invalid-offsetof)
elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
add_compile_options(-ftemplate-depth=1024)
if(APPLE)
add_compile_options(-stdlib=libc++)
endif()