Hi,
As part of Homebrew (https://brew.sh) we are trying to build Gromacs 2021.2 with cmake 3.20.2 (gromacs 2021.2 by chenrui333 · Pull Request #76819 · Homebrew/homebrew-core · GitHub). We are seeing the following build failure:
-- Could not convert sample image, ImageMagick convert can not be used. A possible way to fix it can be found here: https://alexvanderbist.com/2018/fixing-imagick-error-unauthorized
-- Could NOT find Sphinx (missing: SPHINX_EXECUTABLE pygments) (Required is at least version "1.6.1")
CMake Error at api/nblib/CMakeLists.txt:79 (add_dependencies):
Cannot add target-level dependencies to non-existent target "tests".
We are seeing this same error with both gromacs 2021.1 and 2021.2, with both gcc 10.3.0 and gcc 11.1.0. The build for gromacs 2021.1 was previously working, but it was with an earlier version of cmake. So, we suspect that this is a cmake incompatibility issue.
We run cmake with the following arguments:
cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/opt/homebrew/Cellar/gromacs/2021.2 -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DBUILD_TESTING=OFF -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10
Has someone seen this error, or can provide any hint at how to fix it?