[CMake] Properly test if compiler supports compiler flags
[WebKit-https.git] / Source / cmake / WebKitCommon.cmake
index 9864996..79717b4 100644 (file)
@@ -37,6 +37,8 @@ if (NOT HAS_RUN_WEBKIT_COMMON)
     # -----------------------------------------------------------------------------
 
     # To prevent multiple inclusion, most modules should be included once here.
+    include(CheckCCompilerFlag)
+    include(CheckCXXCompilerFlag)
     include(CheckCXXSourceCompiles)
     include(CheckFunctionExists)
     include(CheckIncludeFile)
@@ -46,11 +48,11 @@ if (NOT HAS_RUN_WEBKIT_COMMON)
     include(CMakeDependentOption)
     include(CMakeParseArguments)
     include(ProcessorCount)
-    include(TestCXXAcceptsFlag)
 
     include(WebKitPackaging)
     include(WebKitMacros)
     include(WebKitFS)
+    include(WebKitCompilerFlags)
     include(WebKitFeatures)
 
     include(OptionsCommon)