From 7f551d7f6a7afc7496cece31126464813fb1aa28 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Fri, 1 Oct 2021 18:01:20 +0300 Subject: LibWeb: Use the LibWeb source directory as the IDL #import base path This allows us to include IDL files from other base LibWeb directories wihout using relative `../foo.idl` references. --- Userland/Libraries/LibWeb/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/CMakeLists.txt') diff --git a/Userland/Libraries/LibWeb/CMakeLists.txt b/Userland/Libraries/LibWeb/CMakeLists.txt index 20dbec40f0..f5c04f78c4 100644 --- a/Userland/Libraries/LibWeb/CMakeLists.txt +++ b/Userland/Libraries/LibWeb/CMakeLists.txt @@ -323,7 +323,7 @@ function(libweb_js_wrapper class) list(GET BINDINGS_TYPES ${iter} bindings_type) add_custom_command( OUTPUT "${bindings_src}" - COMMAND "$" "--${bindings_type}" "${CMAKE_CURRENT_SOURCE_DIR}/${class}.idl" > "${bindings_src}.tmp" + COMMAND "$" "--${bindings_type}" "${CMAKE_CURRENT_SOURCE_DIR}/${class}.idl" "${CMAKE_CURRENT_SOURCE_DIR}/" > "${bindings_src}.tmp" COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${bindings_src}.tmp" "${bindings_src}" COMMAND "${CMAKE_COMMAND}" -E remove "${bindings_src}.tmp" VERBATIM -- cgit v1.2.3