[CMake] Properly test if compiler supports compiler flags
[WebKit-https.git] / Source / ThirdParty / brotli / CMakeLists.txt
index 7bfbe68..3612308 100644 (file)
@@ -15,8 +15,8 @@ set(BROTLI_SOURCES
 include_directories("${BROTLI_INCLUDE_DIRECTORIES}")
 add_definitions(-DBROTLI_BUILD_PORTABLE)
 add_library(brotli STATIC ${BROTLI_SOURCES})
-WEBKIT_SET_EXTRA_COMPILER_FLAGS(brotli)
 
 if (COMPILER_IS_GCC_OR_CLANG)
-    WEBKIT_ADD_TARGET_PROPERTIES(brotli COMPILE_FLAGS "-Wno-cast-align -Wno-implicit-fallthrough")
+    WEBKIT_ADD_TARGET_C_FLAGS(brotli -Wno-cast-align
+                                     -Wno-implicit-fallthrough)
 endif ()