REGRESSION(CMake): Make it possible to build without introspection
[WebKit-https.git] / Source / PlatformGTK.cmake
index a0e421a45baeeb30695e8037c46f51029afb7076..0ce6df1d53483820c7f253a0f82243166bc54c18 100644 (file)
@@ -1,7 +1,9 @@
 add_subdirectory(${WEBCORE_DIR}/platform/gtk/po)
 
 # This allows exposing a 'gir' target which builds all GObject introspection files.
-add_custom_target(gir ALL DEPENDS ${GObjectIntrospectionTargets})
+if (ENABLE_INTROSPECTION)
+    add_custom_target(gir ALL DEPENDS ${GObjectIntrospectionTargets})
+endif ()
 
 list(APPEND DocumentationDependencies
     GObjectDOMBindings