portability

This commit is contained in:
Axel Kohlmeyer
2024-02-25 21:19:13 -05:00
parent b8c8b4d19b
commit 86ea5271d6

View File

@ -223,7 +223,7 @@ add_executable(lmp ${MAIN_SOURCES})
target_link_libraries(lmp PRIVATE lammps)
set_target_properties(lmp PROPERTIES OUTPUT_NAME ${LAMMPS_BINARY})
# re-export all symbols for plugins
if(PKG_PLUGIN)
if(PKG_PLUGIN AND (NOT ((CMAKE_SYSTEM_NAME STREQUAL "Windows"))))
set_target_properties(lmp PROPERTIES LINK_FLAGS "-rdynamic")
endif()
install(TARGETS lmp EXPORT LAMMPS_Targets DESTINATION ${CMAKE_INSTALL_BINDIR})