{"id":43287010,"url":"https://github.com/cmake-basis/legacy-modules","last_synced_at":"2026-02-01T18:03:11.766Z","repository":{"id":22770099,"uuid":"26116016","full_name":"cmake-basis/legacy-modules","owner":"cmake-basis","description":"Legacy CMake modules before proper git subtree split and filter-branch.","archived":false,"fork":false,"pushed_at":"2016-04-16T11:01:07.000Z","size":452,"stargazers_count":3,"open_issues_count":0,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-03-18T10:46:11.160Z","etag":null,"topics":["cmake-basis","cmake-modules","legacy"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cmake-basis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-03T11:40:49.000Z","updated_at":"2021-10-23T21:47:10.000Z","dependencies_parsed_at":"2022-08-21T12:00:57.880Z","dependency_job_id":null,"html_url":"https://github.com/cmake-basis/legacy-modules","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/cmake-basis/legacy-modules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmake-basis%2Flegacy-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmake-basis%2Flegacy-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmake-basis%2Flegacy-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmake-basis%2Flegacy-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmake-basis","download_url":"https://codeload.github.com/cmake-basis/legacy-modules/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmake-basis%2Flegacy-modules/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28984832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T17:52:09.146Z","status":"ssl_error","status_checked_at":"2026-02-01T17:49:53.529Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cmake-basis","cmake-modules","legacy"],"created_at":"2026-02-01T18:03:06.827Z","updated_at":"2026-02-01T18:03:11.760Z","avatar_url":"https://github.com/cmake-basis.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"===================\nCMake BASIS Modules\n===================\n\nThis directory contains the CMake modules of the [CMake BASIS][1] project only.\nThese modules are required by any project which takes advantage of the extended\nCMake commands of CMake BASIS. Other components of CMake BASIS such as the\nCMake BASIS Utilities (a library of common functions for each supported programming\nlanguage) and CMake BASIS Tools (e.g., the ```basisproject``` tool) are installed\nthrough the CMake BASIS project.\n\nLicense\n=======\n\nCopyright (c) 2011-2013 University of Pennsylvania   \u003cbr /\u003e\nCopyright (c) 2013-2015 Andreas Schuh                \u003cbr /\u003e\nCopyright (c) 2013-2014 Carnegie Mellon University\n\nCMake BASIS is available under a BSD compatible license. The complete license text\ncan be found in the [COPYING.txt](/COPYING.txt) file.\n\nInstallation\n============\n\nDevelopers requiring only the CMake BASIS Modules are encouraged to include the\n[CMake BASIS Modules][2] files directly in their own Git controlled project source\ntree, either as Git subtree or (shallow) submodule.\n\nTo utilize these modules, we recommend the use of the ```basis-modules``` project\ntemplate instead of the ```basis``` template which requires a separate build of\nthe entire [CMake BASIS][3] project.\n\n**TODO**: Add template files to CMake BASIS and link them here.\n\n\nUsing CMake modules as subtree\n------------------------------\n\nTo add the CMake BASIS Modules as subtree to your project under the subdirectory path ```basis/```,\nuse the following two commands. The first adds a new remote which simplifies the following\ncommands:\n\n```bash\ngit remote add -f basis-modules https://github.com/schuhschuh/cmake-basis-modules.git\ngit subtree add --prefix basis/ basis-modules master --squash\n```\n\nIn order to update the modules at a later date to incorporate changes of the CMake\nBASIS Modules into your project, use the following commands:\n\n\n```bash\ngit fetch basis-modules master\ngit subtree pull --prefix basis/ basis-modules master --squash\n```\n\n\nAdding CMake modules as submodule\n---------------------------------\n\nAn alternative to the ```git subtree``` command to add the CMake BASIS Modules to\nyour project, you can use ```git submodule``` instead. For a comparison of the two\ncommands and their ups and downs, read some of the many tutorials available online.\n\nTo add the CMake BASIS Modules as submodule to your project under the subdirectory path ```basis/```,\nuse the following commands. The ```.gitmodules``` file which records the added submodules\nand the URL of the remote repository must be committed to your project.\n\n```bash\ngit submodule add --depth=1 https://github.com/schuhschuh/cmake-basis-modules.git basis\ngit add .gitmodules\ngit commit -m 'add: CMake BASIS Modules'\n```\n\nIn order to update the modules at a later date to incorporate changes of the CMake\nBASIS Modules into your project, use the following commands:\n\n```bash\ncd basis/                                        # change to submodule directory\ngit checkout master                              # checkout master branch\ngit pull                                         # pull remote changes\ncd ..                                            # change back to main repository\ngit add basis                                    # stash change of submodule SHA\ngit commit -m 'mod: Update CMake BASIS Modules'  # commit submodule change\n```\n\nFirst, you have to pull the changes from the remote repository and merge them into\nyour local submodule repository. Then you have to update the submodule commit SHA\nrecorded in your main repository to point to the latest commit of the CMake BASIS\nModules.\n\n\n[1]: http://opensource.andreasschuh.com/cmake-basis\n[2]: https://github.com/schuhschuh/cmake-basis-modules\n[3]: https://github.com/schuhschuh/cmake-basis\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmake-basis%2Flegacy-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmake-basis%2Flegacy-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmake-basis%2Flegacy-modules/lists"}