{"id":19767813,"url":"https://github.com/sarcasm/cmake-superbuild","last_synced_at":"2025-10-13T09:10:43.371Z","repository":{"id":13169475,"uuid":"15852510","full_name":"Sarcasm/cmake-superbuild","owner":"Sarcasm","description":"CMake SuperBuild template using External_Projects","archived":false,"fork":false,"pushed_at":"2014-02-15T14:43:43.000Z","size":160,"stargazers_count":85,"open_issues_count":0,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-30T16:44:17.760Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sarcasm.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}},"created_at":"2014-01-12T22:40:29.000Z","updated_at":"2025-03-17T15:49:41.000Z","dependencies_parsed_at":"2022-09-15T21:02:20.867Z","dependency_job_id":null,"html_url":"https://github.com/Sarcasm/cmake-superbuild","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sarcasm/cmake-superbuild","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sarcasm%2Fcmake-superbuild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sarcasm%2Fcmake-superbuild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sarcasm%2Fcmake-superbuild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sarcasm%2Fcmake-superbuild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sarcasm","download_url":"https://codeload.github.com/Sarcasm/cmake-superbuild/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sarcasm%2Fcmake-superbuild/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014484,"owners_count":26085535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"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":[],"created_at":"2024-11-12T04:32:35.963Z","updated_at":"2025-10-13T09:10:43.347Z","avatar_url":"https://github.com/Sarcasm.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"cmake-superbuild\n================\n\nCMake SuperBuild template using External_Projects\n\nHow does it work?\n-----------------\n\nThe top-level CMakeLists.txt works in a has 2 stages:\n\n1. `USE_SUPERBUILD=ON` [the default]: Deleguates the generation to\n   SuperBuild.cmake which will download and build the dependencies and then\n   re-invoke the top-level CMakeLists.txt but this time with `USE_SUPERBUILD`\n   set to `OFF`.\n\n2. This step, when `USE_SUPERBUILD=OFF`, is the usual CMakeLists of the project,\n   in a SuperBuild mode this will reside in the subdirectory blah of the\n   SuperBuild directory.\n\n\nExample using with the default method `USE_SUPERBUILD=ON`:\n\n    $ mkdir super-build \u0026\u0026 cd super-build\n    $ cmake ..\n    $ # assuming the Unix Makefile generator was the default\n    $ make\n    \u003cdownload and build dependencies...\u003e\n    \u003cbuild main project \"blah\"...\u003e\n    $ # the project build directory is resides in blah/\n    $ cd blah/\n    $ pwd\n    \u003c...\u003e/cmake-superbuild/build/blah\n    $ ./bin/blah\n    Hello World!\n\nExample without the superbuild, the dependencies are taken care in some other\nways:\n\n    $ mkdir build \u0026\u0026 cd build\n    $ # assuming a proper version of Boost has been built and resides\n    $ # in ~/pkg/boost_1_55_0\n    $ cmake -DUSE_SUPERBUILD=OFF -DBOOST_ROOT=~/pkg/boost_1_55_0 ..\n    $ make\n    $ ./bin/blah\n    Hello World!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarcasm%2Fcmake-superbuild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsarcasm%2Fcmake-superbuild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarcasm%2Fcmake-superbuild/lists"}