This file provides a few notes to CMake developers about how to addsupport for a new language to CMake. It is also possible to placethese files in CMAKE_MODULE_PATH within an outside project to addlanguages not supported by upstream CMake. However, this is nota fully supported use case.The implementation behind the scenes of project/enable_language,including the compiler/platform modules, is an *internal* API thatdoes not make any compatibility guarantees. It is not covered in theofficial reference documentation that is versioned with the source code.Maintainers of external language support are responsible for portingit to each version of CMake as upstream changes are made. Sincethe API is internal we will not necessarily include notice of anychanges in release notes.
compile directories so that try compiles do not need to re-determine and test the LANGCMakeTest(LANG)Compiler.cmake -> test the compiler and set: SET(CMAKE_(LANG)_COMPILER_WORKS 1 CACHE INTERNAL "")CMake(LANG)Information.cmake -> set up rule variables for LANG : CMAKE_(LANG)_CREATE_SHARED_LIBRARY CMAKE_(LANG)_CREATE_SHARED_MODULE CMAKE_(LANG)_CREATE_STATIC_LIBRARY CMAKE_(LANG)_COMPILE_OBJECT CMAKE_(LANG)_LINK_EXECUTABLE