diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2021-07-29 18:32:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-08-20 13:35:12 (GMT) |
commit | 6c92f80f2ecb106916534d4b88704432476b9006 (patch) | |
tree | 604b2a6816b2f79e491a3ea8e8b16cc9ab64eb64 /Source/cmCMakeHostSystemInformationCommand.cxx | |
parent | efe139d1b835d126d7280d5bf615fe8149f923e5 (diff) | |
download | CMake-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.cxx | 5 |
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; } } |