From 2ec0c4b7421424e571a7fa6e18a6759dd2600579 Mon Sep 17 00:00:00 2001 From: Samuel Nicholas Date: Thu, 28 May 2026 10:58:24 +0930 Subject: [PATCH] CMake - emscripten hack Add a commented out line for the emscripten hack to indicate what to do when compiling for the platform. resolves #99 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 323a016a..045a8c16 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,9 @@ if(NOT EXISTS "${CMAKE_CURRENT_LIST_DIR}/godot-cpp/src") endif() add_subdirectory(godot-cpp SYSTEM) +# When compiling for emscripten, this toolchainhack needs to be included. +# set(CMAKE_PROJECT__INCLUDE ${godot-cpp_SOURCE_DIR}/cmake/emsdkHack.cmake) + # Create the gen directory at configure time so IDEs can see generated headers immediately after generate_bindings file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/godot-cpp/gen/include")