Skip to content

project: Fix support for explicit RC language

Brad King requested to merge brad.king/cmake:fix-explicit-RC into master

The check added in commit 72e0dc58 broke support for enabling RC explicitly along with other languages like C. The reason is that we enable all listed languages at once so the internal enable_language(RC) that we do while enabling C or CXX on some platforms triggers the recursion check if RC is explicitly listed.

Ideally we should refactor things to only enable one language at a time, but for now it is simplest to just exclude RC from the explicit list until other languages are enabled, and then enable it.

Closes: #16330 (closed)

Merge request reports