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.)