Skip to content

Commit

Permalink
EMSCRIPTEN: Skip Py Extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Feb 14, 2022
1 parent 6588e2b commit a747516
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,12 @@ if(openPMD_HAVE_PYTHON)
endif()
unset(_USE_PY_LTO)

pybind11_extension(openPMD.py)
if(EMSCRIPTEN)
set_target_properties(openPMD.py PROPERTIES
PREFIX "")
else()
pybind11_extension(openPMD.py)
endif()
pybind11_strip(openPMD.py)

set_target_properties(openPMD.py PROPERTIES CXX_VISIBILITY_PRESET "hidden"
Expand Down

0 comments on commit a747516

Please sign in to comment.