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

6 lines
132 B
CMake
Raw Normal View History

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