From e50c269a6bf1f664e36fe1f9f7b644d97c250522 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 22 Mar 2019 12:51:57 -0400 Subject: [PATCH] add install-python target with suitable error message also when not building a shared library --- cmake/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 4543dbc502..e138a7dffc 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -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() ###############################################################################