On 06/04/2018 01:41 PM, Harry Mallon wrote:
> Would there be a use case for a Module that could retrieve
> OS name and version

We do have these variables:

  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 the

  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/mailman/listinfo/cmake-developers

Reply via email to