diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2021-08-03 17:24:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-08-20 13:35:12 (GMT) |
commit | b9698f89df275a33b01cfc7b4f88a510ad9d8bbe (patch) | |
tree | 6609ec5fea7d0bf37125bb1ad1e8b86a05cea0bd /Source/cmCMakeHostSystemInformationCommand.cxx | |
parent | 5469c71a824880eb646a0003cb001c58f24f9cce (diff) | |
download | CMake-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/cmCMakeHostSystemInformationCommand.cxx')
-rw-r--r-- | Source/cmCMakeHostSystemInformationCommand.cxx | 4 |
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 |