You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot build Sundials 6.2.0 using cmake 3.21 on macOS : I get the following output
portmottelet-cr-1:build mottelet$ /Users/mottelet/git/CMake/bin/cmake cmake ../src -DCMAKE_INSTALL_PREFIX=/Users/mottelet/git/sundials6.2.0/inst/ -DEXAMPLES_INSTALL_PATH=/Users/mottelet/git/sundials6.2.0/examples
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The C compiler identification is AppleClang 10.0.1.10010046
-- The CXX compiler identification is AppleClang 10.0.1.10010046
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at sundials/CMakeLists.txt:69 (add_prefix):
Unknown CMake command "add_prefix".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.21)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
How can I fix it ?
Thanks for help
The text was updated successfully, but these errors were encountered:
It's a bit unclear from your post, but can you clarify the build directory structure for your call? From the first line it looks like you have something like:
git clone git@github.com:LLNL/sundials.git
cd sundials
mkdir build
cd build
/Users/mottelet/git/CMake/bin/cmake cmake ../src -DCMAKE_INSTALL_PREFIX=/Users/mottelet/git/sundials6.2.0/inst/ -DEXAMPLES_INSTALL_PATH=/Users/mottelet/git/sundials6.2.0/examples
If that is the case, then I recommend that you change your cmake command to instead be
Hello,
I cannot build Sundials 6.2.0 using cmake 3.21 on macOS : I get the following output
How can I fix it ?
Thanks for help
The text was updated successfully, but these errors were encountered: