Brad King
2018-06-05 14:54:06 UTC
Would there be a use case for a Module that could retrieve
OS name and version
We do have these variables:OS name and version
https://cmake.org/cmake/help/v3.11/variable/CMAKE_HOST_SYSTEM_NAME.html
https://cmake.org/cmake/help/v3.11/variable/CMAKE_HOST_SYSTEM_VERSION.html
and this command:
https://cmake.org/cmake/help/v3.11/command/cmake_host_system_information.html
but...
(e.g. on macOS parse “sw_vers” to get “Mac OS X” and “10.13.4”, on Linux
parse /etc/os-release to get “Fedora” and “28”)?
...they don't go down to this level of detail. Perhaps theparse /etc/os-release to get “Fedora” and “28”)?
cmake_host_system_information
command could be taught additional queries for that.
-Brad
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
https://cmake.org/mailma