{"id":51452152,"url":"https://github.com/ahoarau/findcholmod.cmake","last_synced_at":"2026-07-05T22:00:56.788Z","repository":{"id":363769062,"uuid":"1264030408","full_name":"ahoarau/FindCHOLMOD.cmake","owner":"ahoarau","description":"FindCHOLMOD.cmake for Ubuntu 22.04","archived":false,"fork":false,"pushed_at":"2026-06-10T09:46:30.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-10T10:10:29.805Z","etag":null,"topics":["cholmod","cmake","suitesparse"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahoarau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-09T13:48:12.000Z","updated_at":"2026-06-10T09:46:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ahoarau/FindCHOLMOD.cmake","commit_stats":null,"previous_names":["ahoarau/findcholmod.cmake"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ahoarau/FindCHOLMOD.cmake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahoarau%2FFindCHOLMOD.cmake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahoarau%2FFindCHOLMOD.cmake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahoarau%2FFindCHOLMOD.cmake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahoarau%2FFindCHOLMOD.cmake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahoarau","download_url":"https://codeload.github.com/ahoarau/FindCHOLMOD.cmake/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahoarau%2FFindCHOLMOD.cmake/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35170542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cholmod","cmake","suitesparse"],"created_at":"2026-07-05T22:00:55.690Z","updated_at":"2026-07-05T22:00:56.780Z","avatar_url":"https://github.com/ahoarau.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FindCHOLMOD.cmake\n\nA backward-compatible CMake find module for the\n[CHOLMOD](https://people.engr.tamu.edu/davis/suitesparse.html) sparse\nCholesky factorization library from SuiteSparse.\n\nThe motivating problem: **Ubuntu 22.04's `libsuitesparse-dev` (SuiteSparse 5.x)\ndoes not ship a `CHOLMODConfig.cmake`**, so `find_package(CHOLMOD CONFIG)`\nfails. This module fills that gap while still preferring the upstream\nconfig when it is available (SuiteSparse 7.x: Ubuntu 24.04, conda-forge,\nHomebrew, etc.).\n\n## Usage\n\nDrop `FindCHOLMOD.cmake` next to your project and add its directory to\n`CMAKE_MODULE_PATH`:\n\n```cmake\nlist(PREPEND CMAKE_MODULE_PATH \"${CMAKE_CURRENT_SOURCE_DIR}/cmake\")\nfind_package(CHOLMOD REQUIRED)\n\nadd_executable(my_app main.c)\ntarget_link_libraries(my_app PRIVATE SuiteSparse::CHOLMOD)\n```\n\nTargets exposed (matching SuiteSparse 7.x's namespace):\n\n| Target                         | Purpose                              |\n| ------------------------------ | ------------------------------------ |\n| `SuiteSparse::CHOLMOD`         | Main library (transitively links the rest) |\n| `SuiteSparse::SuiteSparseConfig` | Common configuration symbols       |\n| `SuiteSparse::AMD`             | Approximate Minimum Degree           |\n| `SuiteSparse::CAMD`            | Constrained AMD                      |\n| `SuiteSparse::COLAMD`          | Column AMD                           |\n| `SuiteSparse::CCOLAMD`         | Constrained Column AMD               |\n\nCHOLMOD pulls in BLAS and LAPACK automatically via CMake's\n`find_package(BLAS)` / `find_package(LAPACK)`.\n\nTo bypass the upstream config and force the manual search, set\n`-DCHOLMOD_NO_CONFIG=ON`.\n\n## Building the example\n\n### macOS / Linux (with [pixi](https://pixi.sh))\n\n```bash\npixi run test\n```\n\nThis fetches `cmake`, `ninja`, and `suitesparse` from conda-forge into a\nlocal environment, configures the example, and runs the smoke test.\n\n### Ubuntu (apt)\n\n```bash\nsudo apt-get install build-essential cmake ninja-build libsuitesparse-dev\ncmake -S example -B build -G Ninja\ncmake --build build\nctest --test-dir build --output-on-failure\n```\n\n### Ubuntu via [Apple Containers](https://github.com/apple/container)\n\nThe pixi `ubuntu22` / `ubuntu24` environments delegate to\n`scripts/test-ubuntu.sh`, which spins up the matching Ubuntu image and\nruns the apt-based build inside it:\n\n```bash\npixi run -e ubuntu22 test    # apt install libsuitesparse-dev + ctest\npixi run -e ubuntu24 test\npixi run -e ubuntu22 shell   # drop into an interactive Ubuntu shell at /work\n```\n\nThe underlying script also accepts `docker` or `podman` if `container`\nis unavailable; you can call it directly without pixi:\n\n```bash\nscripts/test-ubuntu.sh 22.04\n```\n\n## Verified targets\n\n| Platform                | Source           | SuiteSparse | Path through FindCHOLMOD |\n| ----------------------- | ---------------- | ----------- | ------------------------ |\n| macOS / Linux / Windows | pixi (suitesparse7) | 7.10.1   | upstream `CHOLMODConfig` |\n| macOS / Linux / Windows | pixi (suitesparse5) | 5.x      | **manual fallback**      |\n| Ubuntu 24.04            | apt              | 7.6.1       | upstream `CHOLMODConfig` |\n| Ubuntu 22.04            | apt              | 5.1.2       | **manual fallback**      |\n\nAll combinations above are exercised by [`.github/workflows/ci.yml`](.github/workflows/ci.yml).\n\n## Layout\n\n```\n.\n├── FindCHOLMOD.cmake        # the find module\n├── pixi.toml                # conda-forge dev environment + tasks\n├── example/\n│   ├── CMakeLists.txt       # consumer using find_package(CHOLMOD REQUIRED)\n│   └── main.c               # solves a 2x2 SPD system A x = b\n└── scripts/\n    └── test-ubuntu.sh       # apple-container/docker/podman driver\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahoarau%2Ffindcholmod.cmake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahoarau%2Ffindcholmod.cmake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahoarau%2Ffindcholmod.cmake/lists"}