Skip to content

Commit a8c460b

Browse files
authored
Fix examples not working in the lite demo notebook (#231)
1 parent 0a9e71e commit a8c460b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,12 @@ add_library(xeus-cpp-headers INTERFACE)
390390
set_target_properties(xeus-cpp-headers PROPERTIES PUBLIC_HEADER "${XCPP_HEADERS}")
391391

392392
if (EMSCRIPTEN)
393-
install(TARGETS xeus-cpp-headers PUBLIC_HEADER DESTINATION ${SYSROOT_PATH}/include/xcpp)
393+
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${SYSROOT_PATH}/include/xcpp)
394+
395+
message(STATUS "Moving headers to ${SYSROOT_PATH}/include/xcpp")
396+
foreach(header ${XCPP_HEADERS})
397+
file(COPY ${header} DESTINATION ${SYSROOT_PATH}/include/xcpp)
398+
endforeach()
394399
else ()
395400
install(TARGETS xeus-cpp-headers PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/xcpp)
396401
endif()

0 commit comments

Comments
 (0)