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