Skip to content

Commit d104fdd

Browse files
committed
More wasm fixes
1 parent e4d1e43 commit d104fdd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

CMakeLists.txt

+2-4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ set(XEUS_CPP_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
1414

1515
enable_language(CXX)
1616
set(CMAKE_CXX_EXTENSIONS NO)
17+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
1718

1819
include(GNUInstallDirs)
1920

@@ -315,10 +316,7 @@ macro(xeus_cpp_create_target target_name linkage output_name)
315316
endif ()
316317

317318
target_link_libraries(${target_name} PUBLIC ${XEUS_CPP_XEUS_TARGET} clangCppInterOp pugixml argparse::argparse xtl)
318-
if (EMSCRIPTEN)
319-
# For some reason emscripten cannot find Python::Python.
320-
target_link_libraries(${target_name} PUBLIC Development.Embed)
321-
else()
319+
if (NOT EMSCRIPTEN)
322320
target_link_libraries(${target_name} PUBLIC Python::Python)
323321
endif()
324322

0 commit comments

Comments
 (0)