Skip to content

Commit 0987f9f

Browse files
committed
address ignored variables
1 parent 34f8335 commit 0987f9f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ option(XEUS_CPP_BUILD_EXECUTABLE "Build the xcpp executable" ON)
5656

5757
option(XEUS_CPP_USE_SHARED_XEUS "Link xcpp with the xeus shared library (instead of the static library)" ON)
5858
option(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
6162
option(XEUS_CPP_BUILD_TESTS "xeus-cpp test suite" ON)

xeus-cppConfig.cmake.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR};${CMAKE_MODULE_PATH}")
2121
@XEUS_CPP_CONFIG_CODE@
2222

2323
include(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

2628
if (NOT TARGET xeus-cpp AND NOT TARGET xeus-cpp-static)
2729
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")

0 commit comments

Comments
 (0)