You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~> cat CMakeLists.txt
cmake_minimum_required (VERSION 2.8.12)
project(plugin CXX)
add_executable(test test.cc)
em_link_js_library(test "lib.js")
~> emcmake cmake .
configure: cmake . -DCMAKE_TOOLCHAIN_FILE=/usr/local/Cellar/emscripten/3.1.2/libexec/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/usr/local/bin/node;--experimental-wasm-threads
-- Configuring done
CMake Error: Cannot determine link language for target "test_1_lib_js".
CMake Error: CMake can not determine linker language for target: test_1_lib_js
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
emcmake: error: 'cmake . -DCMAKE_TOOLCHAIN_FILE=/usr/local/Cellar/emscripten/3.1.2/libexec/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/usr/local/bin/node;--experimental-wasm-threads' failed (returned 1)
Hello! I'm trying to create a wasm module for envoy via cpp sdk. To do so, I want to use cmake instead of original advertised Makefile. In order to replicate the em++ build line I have created simple CMakeLists.txt file with empty test.cc and empty lib.js files :
I'm looking for a way to add --js-library ${PROXY_WASM_CPP_SDK}/proxy_wasm_intrinsics.js into CMake to proceed with the build... But CMake complains: Cannot determine link language for target "test_1_lib_js". Even adding
The text was updated successfully, but these errors were encountered:
libbkmz
changed the title
can't use CMake function em_link_js_library for cpp project
can't use CMake function em_link_js_library for cpp project
Feb 1, 2022
libbkmz
changed the title
can't use CMake function em_link_js_library for cpp project
can't use CMake function em_link_js_library for cpp project
Feb 1, 2022
Please include the following in your bug report:
Version of emscripten/emsdk:
Failing command line in full:
emcmake cmake .
Full link command and output with
-v
appended:Hello! I'm trying to create a wasm module for envoy via cpp sdk. To do so, I want to use cmake instead of original advertised Makefile. In order to replicate the em++ build line I have created simple
CMakeLists.txt
file with emptytest.cc
and emptylib.js
files :I'm looking for a way to add
--js-library ${PROXY_WASM_CPP_SDK}/proxy_wasm_intrinsics.js
into CMake to proceed with the build... But CMake complains:Cannot determine link language for target "test_1_lib_js".
Even addingDoes not help at all...
Here is the gist example to reproduce the issue: https://gist.github.com/libbkmz/c5090b5a7274de9a18664db3fde8228c
The text was updated successfully, but these errors were encountered: