Skip to content

Commit 02e7981

Browse files
committed
Emscripten finds Development.Embed and not Python::Python
1 parent 040d307 commit 02e7981

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,10 @@ macro(xeus_cpp_create_target target_name linkage output_name)
322322
endif ()
323323

324324
target_link_libraries(${target_name} PUBLIC ${XEUS_CPP_XEUS_TARGET} clangCppInterOp pugixml argparse::argparse xtl)
325-
if (NOT EMSCRIPTEN)
325+
if (EMSCRIPTEN)
326+
# For some reason emscripten cannot find Python::Python.
327+
target_link_libraries(${target_name} PUBLIC Development.Embed)
328+
else()
326329
target_link_libraries(${target_name} PUBLIC Python::Python)
327330
endif()
328331

0 commit comments

Comments
 (0)