The CMake code should error in that case. No sense letting users get this far into a (known) broken build.