Skip to content

Instantly share code, notes, and snippets.

@libbkmz
Created January 28, 2022 13:20
Show Gist options
  • Save libbkmz/c5090b5a7274de9a18664db3fde8228c to your computer and use it in GitHub Desktop.
Save libbkmz/c5090b5a7274de9a18664db3fde8228c to your computer and use it in GitHub Desktop.
CMake Error: Cannot determine link language for target "test_1_lib_js".
cmake_minimum_required (VERSION 3.8)
set(CMAKE_VERBOSE_MAKEFILE on)
project(plugin CXX)
add_executable(test test.cc)
em_link_js_library(test "lib.js")
@libbkmz
Copy link
Author

libbkmz commented Jan 28, 2022

emcmake cmake  . ;and emmake make
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)

@libbkmz
Copy link
Author

libbkmz commented Jan 28, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment