CMake - emscripten hack

Add a commented out line for the emscripten hack to indicate what to do when compiling for the platform.
resolves #99
This commit is contained in:
Samuel Nicholas
2026-05-28 10:58:24 +09:30
parent 7747217b36
commit 2ec0c4b742

View File

@@ -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_<project-name>_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")