It is better to have the top level CMake file only consist of includes and settings, rather than have it include business logic like this. Should be NFC.