Skip to content

Commit 2b2e001

Browse files
authored
Merge pull request #134 from IsabelParedes/shared-xeus
Link against shared xeus library
2 parents 534ec15 + a7a0844 commit 2b2e001

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

CMakeLists.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ option(
7676
)
7777

7878
if(EMSCRIPTEN)
79+
set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS TRUE)
7980
set(XEUS_OCTAVE_BUILD_STATIC ON)
8081
set(XEUS_OCTAVE_BUILD_SHARED OFF)
8182
set(XEUS_OCTAVE_BUILD_EXECUTABLE ON)
82-
set(XEUS_OCTAVE_USE_SHARED_XEUS_ZMQ OFF)
8383
set(XEUS_OCTAVE_USE_SHARED_XEUS_OCTAVE OFF)
8484
set(XEUS_OCTAVE_DISABLE_ARCH_NATIVE ON)
8585
set(XEUS_OCTAVE_DISABLE_TUNE_GENERIC ON)
@@ -263,11 +263,7 @@ macro(xeus_octave_create_target target_name linkage output_name)
263263
include(WasmBuildOptions)
264264
target_compile_options(${target_name} PRIVATE ${octinterp_CFLAGS})
265265
xeus_wasm_compile_options(${target_name})
266-
target_link_libraries(
267-
${target_name}
268-
# Cannot mix shared and static libs with emscripten
269-
PUBLIC ${octinterp_STATIC_LIBRARIES}
270-
)
266+
target_link_libraries(${target_name} PUBLIC xeus ${octinterp_STATIC_LIBRARIES})
271267
else()
272268
target_link_libraries(
273269
${target_name}

environment-wasm-host.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dependencies:
66
- xeus
77
- xeus-lite
88
- nlohmann_json
9+
- nlohmann_json-abi
910
- octave
1011
- libpng
1112
- zlib

0 commit comments

Comments
 (0)