From b22ce0f4be697d5f765837d2170bb2265b5a3421 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 25 Feb 2024 21:58:35 -0500 Subject: [PATCH] use platform neutral CMake property to export symbols --- cmake/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 508ea49f5e..f87c92396f 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -224,7 +224,7 @@ target_link_libraries(lmp PRIVATE lammps) set_target_properties(lmp PROPERTIES OUTPUT_NAME ${LAMMPS_BINARY}) # re-export all symbols for plugins if(PKG_PLUGIN AND (NOT ((CMAKE_SYSTEM_NAME STREQUAL "Windows")))) - set_target_properties(lmp PROPERTIES LINK_FLAGS "-rdynamic") + set_target_properties(lmp PROPERTIES ENABLE_EXPORTS TRUE) endif() install(TARGETS lmp EXPORT LAMMPS_Targets DESTINATION ${CMAKE_INSTALL_BINDIR})