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

6 lines
128 B
CMake
Raw Normal View History

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