enable_language() sets CMAKE_<lang>_COMPILER_LOADED in local scope
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
When enable_language(<lang>)
is called within a function, it sets the variable CMAKE_<lang>_COMPILER_LOADED
within the scope of that function only. This behaviour is rather unexpected, or at least not mentioned in the documentation.
Edited by Brad King