1 2 3 4 5
enable_language(CXX) add_executable(main main.cpp) target_compile_options(main PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-DANYTHING>)