list(): rely on cmList class

Fixes: #24549
3 files changed