Unverified Commit e50c269a authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

add install-python target with suitable error message also when not building a shared library

parent 04f999fd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1488,6 +1488,10 @@ if(BUILD_LIB AND BUILD_SHARED_LIBS)
    WORKING_DIRECTORY  ${CMAKE_CURRENT_SOURCE_DIR}/../python
    COMMENT "Installing LAMMPS Python module"
    )
else()
  add_custom_target(
    install-python
    echo "Installation of the LAMMPS Python module requires building the LAMMPS shared library")
endif()

###############################################################################