From 32b72c316990efc846eee649167ee3b3d92e4f61 Mon Sep 17 00:00:00 2001 From: chenqianhe <1278095698@qq.com> Date: Thu, 26 Jan 2023 18:15:37 +0800 Subject: [PATCH] addon: configure cmake to build when cmake-js is used --- examples/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index d0f930b..01006c1 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -24,8 +24,9 @@ if (EMSCRIPTEN) add_subdirectory(command.wasm) add_subdirectory(talk.wasm) add_subdirectory(bench.wasm) -else() +elseif(CMAKE_JS_VERSION) add_subdirectory(addon.node) +else() add_subdirectory(main) add_subdirectory(stream) add_subdirectory(command)