use platform neutral CMake property to export symbols
This commit is contained in:
@ -224,7 +224,7 @@ target_link_libraries(lmp PRIVATE lammps)
|
|||||||
set_target_properties(lmp PROPERTIES OUTPUT_NAME ${LAMMPS_BINARY})
|
set_target_properties(lmp PROPERTIES OUTPUT_NAME ${LAMMPS_BINARY})
|
||||||
# re-export all symbols for plugins
|
# re-export all symbols for plugins
|
||||||
if(PKG_PLUGIN AND (NOT ((CMAKE_SYSTEM_NAME STREQUAL "Windows"))))
|
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()
|
endif()
|
||||||
install(TARGETS lmp EXPORT LAMMPS_Targets DESTINATION ${CMAKE_INSTALL_BINDIR})
|
install(TARGETS lmp EXPORT LAMMPS_Targets DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user