-
Add remote to conan's package remotes
$ conan remote add sintef https://package.smd.sintef.no
-
Using conanfile.txt and cmake in your project.
Add conanfile.txt:
[requires] spral/2025.09.18@sintef/stable [tool_requires] cmake/[>=3.25.0 <4] [layout] cmake_layout [generators] CMakeDeps CMakeToolchain VirtualBuildEnvInsert into your CMakeLists.txt something like the following lines:
cmake_minimum_required(VERSION 3.15) project(TheProject CXX) find_package(spral REQUIRED) add_executable(the_executor code.cpp) target_link_libraries(the_executor spral::spral)
Install and build e.g. a Release configuration:
$ conan install . -s build_type=Release -pr:b=default $ source build/Release/generators/conanbuild.sh $ cmake --preset conan-release $ cmake --build build/Release $ source build/Release/generators/deactivate_conanbuild.sh
| Option | Default | Domain |
|---|---|---|
| shared | False | [True, False] |
| fPIC | True | [True, False] |
| with_64bit_int | False | [True, False] |
| with_openmp | True | [True, False] |
- Does not work on Windows msvc yet