enable_language(CXX C) add_library(empty empty.cpp empty.c) target_compile_options(empty PRIVATE LANG_IS_$ ) file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/opts-$.txt CONTENT "$\n" )