blob: 4aef955e7b73b4ed2f8fe410560d0a19c32ced6d [file] [log] [blame]
WEBKIT_APPEND_GLOBAL_COMPILER_FLAGS(
-Wno-typedef-redefinition)
if (${CMAKE_GENERATOR} MATCHES "Visual Studio")
set(bmalloc_C_SOURCES ${bmalloc_SOURCES})
list(FILTER bmalloc_C_SOURCES INCLUDE REGEX "\\.c$")
# With the VisualStudio generator, the compiler complains about -std=c++* for C sources.
set_source_files_properties(
${bmalloc_C_SOURCES}
PROPERTIES LANGUAGE C
COMPILE_OPTIONS --std=gnu17
)
endif ()