Skip to content

Commit

Permalink
More wasm fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vgvassilev committed Mar 11, 2024
1 parent e4d1e43 commit d104fdd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ set(XEUS_CPP_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)

enable_language(CXX)
set(CMAKE_CXX_EXTENSIONS NO)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

include(GNUInstallDirs)

Expand Down Expand Up @@ -315,10 +316,7 @@ macro(xeus_cpp_create_target target_name linkage output_name)
endif ()

target_link_libraries(${target_name} PUBLIC ${XEUS_CPP_XEUS_TARGET} clangCppInterOp pugixml argparse::argparse xtl)
if (EMSCRIPTEN)
# For some reason emscripten cannot find Python::Python.
target_link_libraries(${target_name} PUBLIC Development.Embed)
else()
if (NOT EMSCRIPTEN)
target_link_libraries(${target_name} PUBLIC Python::Python)
endif()

Expand Down

0 comments on commit d104fdd

Please sign in to comment.