CMake/Tests/RunCMake/COMPILE_LANGUAGE-genex/CompileOptions.cmake

6 lines
128 B
CMake

enable_language(CXX)
add_executable(main main.cpp)
target_compile_options(main PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-DANYTHING>)