Hide the use of FetchContent behind a flag

FetchContent is now disabled by default, when the project is included as
an subproject by another top-level project.
Also, every usage of FetchContent is behind a separate flag to enable and
disable the usage with granular control.
This commit is contained in:
2024-11-18 17:22:03 +01:00
parent ca9ef16d0d
commit c3eb5e6a62
9 changed files with 100 additions and 63 deletions

View File

@@ -22,8 +22,8 @@
"inherits": "cmake-pedantic",
"cacheVariables": {
"DRAMSYS_BUILD_TESTS": "ON",
"DRAMSYS_WITH_DRAMPOWER": "ON",
"DRAMSYS_BUILD_TRACE_ANALYZER": "ON"
"DRAMSYS_BUILD_TRACE_ANALYZER": "ON",
"DRAMSYS_WITH_DRAMPOWER": "ON"
}
},
{