From 2d75b7944990f1ce80b3847be1f8dff09df82dad Mon Sep 17 00:00:00 2001 From: Victor Toofic <toofics@users.noreply.github.com> Date: ćšć, 20 5æ 2021 00:04:08 +0800 Subject: [PATCH] - use CMake PROJECT_DESCRIPTION var instead to be able to build with cmake < 3.8 (#118) --- src/library/os/dmi_info.hpp | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/library/os/dmi_info.hpp b/src/library/os/dmi_info.hpp index 94c7a3c..7bdc77c 100644 --- a/src/library/os/dmi_info.hpp +++ b/src/library/os/dmi_info.hpp @@ -17,6 +17,8 @@ std::string m_sys_vendor; std::string m_bios_vendor; std::string m_bios_description; + std::string m_cpu_manufacturer; + unsigned int m_cpu_cores = 0; public: DmiInfo(); @@ -24,6 +26,9 @@ const std::string& bios_vendor() const { return m_bios_vendor; }; const std::string& sys_vendor() const { return m_sys_vendor; }; const std::string& bios_description() const { return m_bios_description; }; + // Only Windows + const std::string& cpu_manufacturer() const { return m_cpu_manufacturer; }; + const unsigned int cpu_cores() const { return m_cpu_cores; }; }; } // namespace os -- Gitblit v1.9.1