File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ option(XEUS_CPP_BUILD_EXECUTABLE "Build the xcpp executable" ON)
5656
5757option (XEUS_CPP_USE_SHARED_XEUS "Link xcpp with the xeus shared library (instead of the static library)" ON )
5858option (XEUS_CPP_USE_SHARED_XEUS_CPP "Link xcpp with the xeus shared library (instead of the static library)" ON )
59+ option (XEUS_CPP_EMSCRIPTEN_WASM_BUILD "Build for wasm with emscripten" OFF )
5960
6061# Test options
6162option (XEUS_CPP_BUILD_TESTS "xeus-cpp test suite" ON )
Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR};${CMAKE_MODULE_PATH}")
2121@XEUS_CPP_CONFIG_CODE@
2222
2323include (CMakeFindDependencyMacro)
24- find_dependency(xeus-zmq @xeus-zmq_REQUIRED_VERSION@)
24+ if (NOT @XEUS_CPP_EMSCRIPTEN_WASM_BUILD@)
25+ find_dependency(xeus-zmq @xeus-zmq_REQUIRED_VERSION@)
26+ endif ()
2527
2628if (NOT TARGET xeus-cpp AND NOT TARGET xeus-cpp-static )
2729 include ("${CMAKE_CURRENT_LIST_DIR} /@PROJECT_NAME@Targets.cmake" )
You can’t perform that action at this time.
0 commit comments