Skip to content

Commit 889f32f

Browse files
committed
removed redundant files in lite case
1 parent 1158ecd commit 889f32f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

CMakeLists.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,8 @@ if(EMSCRIPTEN)
444444
xeus_wasm_link_options(xcpp "web,worker")
445445
target_link_options(xcpp
446446
PUBLIC "SHELL: --preload-file ${SYSROOT_PATH}/include@/include"
447-
PUBLIC "SHELL: --preload-file ${XEUS_CPP_DATA_DIR}@/share/xeus-cpp"
448-
PUBLIC "SHELL: --preload-file ${XEUS_CPP_CONF_DIR}@/etc/xeus-cpp"
447+
PUBLIC "SHELL: --preload-file ${XCPP_TAGFILES_DIR}@/share/xeus-cpp/tagfiles"
448+
PUBLIC "SHELL: --preload-file ${XCPP_TAGCONFS_DIR}@/etc/xeus-cpp/tags.d"
449449
PUBLIC "SHELL: --post-js ${CMAKE_CURRENT_SOURCE_DIR}/wasm_patches/post.js"
450450
)
451451
# TODO: Emscripten supports preloading files just once before it generates
@@ -472,11 +472,13 @@ include(CMakePackageConfigHelpers)
472472

473473
set(XEUS_CPP_CMAKECONFIG_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}" CACHE STRING "install path for xeus-cppConfig.cmake")
474474

475-
install(DIRECTORY ${XCPP_TAGFILES_DIR}
476-
DESTINATION ${XEUS_CPP_DATA_DIR})
475+
if(NOT EMSCRIPTEN)
476+
install(DIRECTORY ${XCPP_TAGFILES_DIR}
477+
DESTINATION ${XEUS_CPP_DATA_DIR})
477478

478-
install(DIRECTORY ${XCPP_TAGCONFS_DIR}
479-
DESTINATION ${XEUS_CPP_CONF_DIR})
479+
install(DIRECTORY ${XCPP_TAGCONFS_DIR}
480+
DESTINATION ${XEUS_CPP_CONF_DIR})
481+
endif()
480482

481483
# Install xeus-cpp and xeus-cpp-static
482484
if (XEUS_CPP_BUILD_SHARED)

0 commit comments

Comments
 (0)