Work around LLVM header peculiarity

Bug report: http://llvm.org/bugs/show_bug.cgi?id=21472
This commit is contained in:
Tillmann Karras
2014-11-04 02:29:33 +01:00
parent 8c981aad04
commit c34d99e40e
2 changed files with 5 additions and 1 deletions

View File

@ -764,6 +764,11 @@ add_custom_command(TARGET unittests POST_BUILD COMMAND ${CMAKE_CTEST_COMMAND})
# Start compiling our code
#
add_definitions(-std=gnu++0x)
# These aren't actually needed for C11/C++11
# but some dependencies require them (LLVM, libav).
add_definitions(-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS)
add_subdirectory(Source)