The list commands require an unsubstituted variable as the second argument, i.e.:
set (MY_LIST a b c d)
list (GET MY_LIST 0 HEAD)
message ("HEAD = ${HEAD}")
The list commands require an unsubstituted variable as the second argument, i.e.:
set (MY_LIST a b c d)
list (GET MY_LIST 0 HEAD)
message ("HEAD = ${HEAD}")