summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2021-08-03 17:24:59 (GMT)
committerBrad King <brad.king@kitware.com>2021-08-20 13:35:12 (GMT)
commitb9698f89df275a33b01cfc7b4f88a510ad9d8bbe (patch)
tree6609ec5fea7d0bf37125bb1ad1e8b86a05cea0bd /Source
parent5469c71a824880eb646a0003cb001c58f24f9cce (diff)
downloadCMake-b9698f89df275a33b01cfc7b4f88a510ad9d8bbe.zip
CMake-b9698f89df275a33b01cfc7b4f88a510ad9d8bbe.tar.gz
CMake-b9698f89df275a33b01cfc7b4f88a510ad9d8bbe.tar.bz2
cmake_host_system_information: Make it available for all systems
Before it was Linux only.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCMakeHostSystemInformationCommand.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/Source/cmCMakeHostSystemInformationCommand.cxx b/Source/cmCMakeHostSystemInformationCommand.cxx
index b2c4534..74071ff 100644
--- a/Source/cmCMakeHostSystemInformationCommand.cxx
+++ b/Source/cmCMakeHostSystemInformationCommand.cxx
@@ -149,7 +149,6 @@ cm::optional<std::string> GetValue(cmsys::SystemInformation& info,
return {};
}
-#ifdef __linux__
cm::optional<std::pair<std::string, std::string>> ParseOSReleaseLine(
std::string const& line)
{
@@ -407,7 +406,6 @@ cm::optional<std::string> GetValue(cmExecutionStatus& status,
// NOTE Empty string means requested variable not set
return std::string{};
}
-#endif
#ifdef HAVE_VS_SETUP_HELPER
cm::optional<std::string> GetValue(cmExecutionStatus& status,
@@ -494,9 +492,7 @@ bool cmCMakeHostSystemInformationCommand(std::vector<std::string> const& args,
auto value =
GetValueChained(
[&]() { return GetValue(info, key); }
-#ifdef __linux__
, [&]() { return GetValue(status, key, variable); }
-#endif
#ifdef HAVE_VS_SETUP_HELPER
, [&]() { return GetValue(status, key); }
#endif