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

This commit is contained in:
Axel Kohlmeyer 2019-03-22 12:51:57 -04:00
parent 04f999fdd6
commit e50c269a6b
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 4 additions and 0 deletions

View File

@ -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()
###############################################################################