From 6deffdff320848db0cad5ba52751efa01a1273bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=85=D9=87=D8=AF=D9=8A=20=D8=B4=D9=8A=D9=86=D9=88=D9=86?= =?UTF-8?q?=20=28Mehdi=20Chinoune=29?= <79349457+MehdiChinoune@users.noreply.github.com> Date: Wed, 29 May 2024 13:35:49 +0100 Subject: [PATCH] Fix building Qt Plugins without spglib (USE_SPGLIB=OFF) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: مهدي شينون (Mehdi Chinoune) <79349457+MehdiChinoune@users.noreply.github.com> --- avogadro/qtplugins/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/avogadro/qtplugins/CMakeLists.txt b/avogadro/qtplugins/CMakeLists.txt index 1c968bc12e..b2c5219a9d 100644 --- a/avogadro/qtplugins/CMakeLists.txt +++ b/avogadro/qtplugins/CMakeLists.txt @@ -156,7 +156,9 @@ if(USE_VTK) add_subdirectory(plotpdf) add_subdirectory(plotrmsd) add_subdirectory(plotxrd) - add_subdirectory(yaehmop) + if(USE_SPGLIB) + add_subdirectory(yaehmop) + endif() endif() # script plugins (input generators, etc.)