diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index f505057b6c..cc4c1cc905 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -747,6 +747,12 @@ if (${_index} GREATER -1) endif() message(STATUS "<<< Linker flags: >>>") message(STATUS "Executable name: ${LAMMPS_BINARY}") +if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.13) + get_target_property(OPTIONS lammps LINK_OPTIONS) + if(OPTIONS) + message(STATUS "Linker options: ${OPTIONS}") + endif() +endif() if(CMAKE_EXE_LINKER_FLAGS) message(STATUS "Executable linker flags: ${CMAKE_EXE_LINKER_FLAGS}") endif()