You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
388 B
12 lines
388 B
3 years ago
|
cmake_host_system_information(RESULT TEST1 QUERY DISTRIB_INFO)
|
||
|
|
||
|
foreach(VAR IN LISTS TEST1)
|
||
|
message(STATUS "${VAR}=`${${VAR}}`")
|
||
|
endforeach()
|
||
|
|
||
|
# Query individual variables
|
||
|
cmake_host_system_information(RESULT TEST2 QUERY DISTRIB_ID DISTRIB_VERSION)
|
||
|
list(POP_FRONT TEST2 TEST2_ID TEST2_VERSION)
|
||
|
message(STATUS "TEST2_ID=`${TEST2_ID}`")
|
||
|
message(STATUS "TEST2_VERSION=`${TEST2_VERSION}`")
|