From f38f20996208f7ac2f96f53de30e1927280497fa Mon Sep 17 00:00:00 2001 From: Reinhold Gschweicher Date: Thu, 24 Feb 2022 23:10:44 +0100 Subject: [PATCH] cmake: assume emcmake in path when using emsdk --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7300a85..c9aa813 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -192,7 +192,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") # Special case for SDL2 dependency, goal is to find a config that exports SDL2::SDL2 target # libsdl2-dev has a `sdl2-config.cmake` that doesn't export this, but vcpkg does.. if(${CMAKE_SYSTEM_NAME} MATCHES "Emscripten") - # /usr/lib/emscripten/emcmake cmake -S . -B _build_em + # emcmake cmake -S . -B _build_em set(USE_FLAGS "-s USE_PTHREADS=1 -pthread") set(USE_FLAGS "${USE_FLAGS} -s USE_SDL=2") set(USE_FLAGS "${USE_FLAGS} -fwasm-exceptions")