dynamic loaded library crashes currently on macOS

This commit is contained in:
Axel Kohlmeyer
2023-08-15 23:44:14 -04:00
parent 2cdb9c5c69
commit b57f6d9b30

View File

@ -53,6 +53,9 @@ endif()
set(LAMMPS_PLUGINLIB_DIR ${LAMMPS_DIR}/examples/COUPLE/plugin)
if(LAMMPS_GUI_USE_PLUGIN)
if(APPLE)
message(FATAL_ERROR "Dynamic loading of the LAMMPS library currently not supported on this platform")
endif()
enable_language(C)
set(PLUGIN_LOADER_SRC ${LAMMPS_PLUGINLIB_DIR}/liblammpsplugin.c)
endif()