CMAKE_<LANG>_COMPILER_LOADED
Определяется как true, если язык включен.
Когда язык <LANG> включен с помощью project() или enable_language(), эта переменная определена как 1.
© 2000–2019 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.10/variable/CMAKE_LANG_COMPILER_LOADED.html