summaryrefslogtreecommitdiffstats
path: root/Source/cmCMakeHostSystemInformationCommand.cxx
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2021-07-29 18:32:26 (GMT)
committerBrad King <brad.king@kitware.com>2021-08-20 13:35:12 (GMT)
commit6c92f80f2ecb106916534d4b88704432476b9006 (patch)
tree604b2a6816b2f79e491a3ea8e8b16cc9ab64eb64 /Source/cmCMakeHostSystemInformationCommand.cxx
parentefe139d1b835d126d7280d5bf615fe8149f923e5 (diff)
downloadCMake-6c92f80f2ecb106916534d4b88704432476b9006.zip
CMake-6c92f80f2ecb106916534d4b88704432476b9006.tar.gz
CMake-6c92f80f2ecb106916534d4b88704432476b9006.tar.bz2
cmake_host_system_information: Also set `USED_FALLBACK_SCRIPT`
If the OS identification was obtained via fallback script.
Diffstat (limited to 'Source/cmCMakeHostSystemInformationCommand.cxx')
-rw-r--r--Source/cmCMakeHostSystemInformationCommand.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmCMakeHostSystemInformationCommand.cxx b/Source/cmCMakeHostSystemInformationCommand.cxx
index 90240a1..1464220 100644
--- a/Source/cmCMakeHostSystemInformationCommand.cxx
+++ b/Source/cmCMakeHostSystemInformationCommand.cxx
@@ -287,6 +287,8 @@ std::map<std::string, std::string> GetOSReleaseVariables(
// Ugh, it could be some pre-os-release distro.
// Lets try some fallback getters.
+ // See also:
+ // - http://linuxmafia.com/faq/Admin/release-files.html
// 1. CMake provided
cmsys::Glob gl;
@@ -358,8 +360,9 @@ std::map<std::string, std::string> GetOSReleaseVariables(
data.emplace(std::move(key), std::move(value));
}
+ // Try 'till some script can get anything
if (!data.empty()) {
- // Try 'till some script can get anything
+ data.emplace("USED_FALLBACK_SCRIPT", script);
break;
}
}