2 set(CMAKE_INCLUDE_CURRENT_DIR OFF)
5 include_directories(BEFORE
15 add_compile_flags_language("-std=gnu99" "C")
16 add_compile_flags("-Wno-deprecated-declarations")
17 if(GCC_VERSION VERSION_EQUAL 4.7 OR GCC_VERSION VERSION_GREATER 4.7)
18 add_compile_flags("-Wno-error=unused-local-typedefs")
20 # optimizations (builtin memcmp is slow on some gcc versions) used in SConsript files
21 add_compile_flags("-ffast-math -fno-builtin-memcmp")
23 include_directories(include/c99)
24 add_compile_flags("/wd4996")
30 -DPIPE_SUBSYSTEM_WINDOWS_USER
35 # our DBG definitions conflict with mesa source code
36 remove_definitions(-DDBG=1 -DDBG=0)