From 5585d69fcf4360ddd2b3897112eac3bfa90a0f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20G=C3=BCnzler?= Date: Thu, 14 Mar 2024 12:02:08 +0100 Subject: [PATCH] fixup! Support selecting JavaScriptCore API version --- cmake/FindJavaScriptCore.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/FindJavaScriptCore.cmake b/cmake/FindJavaScriptCore.cmake index 9088769..1124353 100644 --- a/cmake/FindJavaScriptCore.cmake +++ b/cmake/FindJavaScriptCore.cmake @@ -41,11 +41,11 @@ if(NOT JavaScriptCore_FOUND) # NOTE: this is required since WebkitGTK (which includes JavaScriptCore) only # exposes the GLib headers starting in versions after 4.0 # see: https://github.com/WebKit/WebKit/blob/main/Source/WebKit/gtk/migrating-to-webkitgtk-6.0.md#stop-using-deprecated-apis - FILE(GLOB headers ${PROJECT_SOURCE_DIR}/vendor/webkitgtk/Source/JavaScriptCore/API/*.h) - FOREACH(header ${headers}) + file(GLOB headers ${PROJECT_SOURCE_DIR}/vendor/webkitgtk/Source/JavaScriptCore/API/*.h) + foreach(header ${headers}) cmake_path(GET header FILENAME header_filename) configure_file("${header}" "${PROJECT_BINARY_DIR}/javascriptcore-headers/JavaScriptCore/${header_filename}" COPYONLY) - ENDFOREACH() + endforeach() set_property(TARGET javascript_core PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${PROJECT_BINARY_DIR}/javascriptcore-headers") endif()