CMake Error at CMakeLists.txt
$ ./scripts/build.sh
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
cmake_minimum_required called with unknown argument "3.5".
-- The C compiler identification is GNU 14.3.0
-- The CXX compiler identification is GNU 14.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /scratch/og1u24/conda/envs/aice/bin/x86_64-conda-linux-gnu-cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /scratch/og1u24/conda/envs/aice/bin/x86_64-conda-linux-gnu-c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring incomplete, errors occurred!
gmake: Makefile: No such file or directory
gmake: *** No rule to make target 'Makefile'. Stop.
There seems to be an issue with the way the following line is structured in CMakeLists.txt:
cmake_minimum_required(VERSION 2.8 3.5)
It thinks 2 arguments are being passed to it, and that is not a valid argument list. When we load the cmake module, it is version 4.2.0 so we can safely remove the 2.8 from the minimum requirement for cmake and just keep 3.5.
In short, the solution is:
cmake_minimum_required(VERSION 3.5)