Skip to content

Commit 2ec0c4b

Browse files
committed
CMake - emscripten hack
Add a commented out line for the emscripten hack to indicate what to do when compiling for the platform. resolves #99
1 parent 7747217 commit 2ec0c4b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ if(NOT EXISTS "${CMAKE_CURRENT_LIST_DIR}/godot-cpp/src")
2626
endif()
2727
add_subdirectory(godot-cpp SYSTEM)
2828

29+
# When compiling for emscripten, this toolchainhack needs to be included.
30+
# set(CMAKE_PROJECT_<project-name>_INCLUDE ${godot-cpp_SOURCE_DIR}/cmake/emsdkHack.cmake)
31+
2932
# Create the gen directory at configure time so IDEs can see generated headers immediately after generate_bindings
3033
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/godot-cpp/gen/include")
3134

0 commit comments

Comments
 (0)