Merge branch 'release-2020' into master
[alexxy/gromacs.git] / share / CMakeLists.txt
index b3be732af638a401410d35577a7b8ad38a6b3a97..d10807073e1d0d7b54adcc983a8f6f2a0e9de2f4 100644 (file)
@@ -33,7 +33,9 @@
 # To help us fund GROMACS development, we humbly ask that you cite
 # the research papers on the package. Check out http://www.gromacs.org.
 
-add_subdirectory(template)
+if(GMX_INSTALL_LEGACY_API)
+    add_subdirectory(template)
+endif()
 
 install(FILES README.tutor README_FreeEnergyModifications.txt
     DESTINATION ${GMX_INSTALL_GMXDATADIR}