diff --git a/WebKitBrowser/CMakeLists.txt b/WebKitBrowser/CMakeLists.txt index 8e00af5f..747d3131 100644 --- a/WebKitBrowser/CMakeLists.txt +++ b/WebKitBrowser/CMakeLists.txt @@ -134,9 +134,12 @@ add_library(${PLUGIN_WEBKITBROWSER_IMPLEMENTATION} SHARED Module.cpp WebKitImplementation.cpp InjectedBundle/Tags.cpp - InjectedBundle/Utils.cpp ) +if(NOT WEBKIT_GLIB_API) + target_sources(${MODULE_NAME} PRIVATE InjectedBundle/Utils.cpp) +endif() + target_link_libraries(${PLUGIN_WEBKITBROWSER_IMPLEMENTATION} PRIVATE ${NAMESPACE}Plugins::${NAMESPACE}Plugins