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.11/variable/CMAKE_LANG_COMPILER_LOADED.html