1 2 3 4 5 6
enable_language(CXX C) file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/output.txt CONTENT "LANG_IS_$<LINK_LANGUAGE>\n" )