When running makenek I got this error message:
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
CMake Error at config/SundialsFortran.cmake:81 (try_compile):
Failed to configure test project build system.
Call Stack (most recent call first):
CMakeLists.txt:499 (INCLUDE)
-- Configuring incomplete, errors occurred!
This is due to the ancient versions that are being used here... My workaround is this modification to the install script in 3rd_party/cvode/install:
mkdir sundials
tar -zxvf v$VER.tar.gz -C ./sundials --strip-components=1
cd sundials
+
+sed -i -E 's/CMAKE_MINIMUM_REQUIRED\(VERSION [0-9]+(\.[0-9]+)+\)/CMAKE_MINIMUM_REQUIRED(VERSION 3.10)/I' $(grep -rni CMAKE_MINIMUM_REQUIRED --files-with-match)
+
mkdir -p build
cd build
Of course, this is only a band-aid, but I don't really know if switching out the cvode/sundials version to something more recent is even possible.
When running
makenekI got this error message:This is due to the ancient versions that are being used here... My workaround is this modification to the install script in
3rd_party/cvode/install:Of course, this is only a band-aid, but I don't really know if switching out the cvode/sundials version to something more recent is even possible.