CMake/Tests/RunCMake/GeneratorExpression/COMPILE_LANGUAGE-unknown-la...

5 lines
121 B
CMake
Raw Normal View History

enable_language(C)
add_executable(empty empty.c)
target_compile_options(empty PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-Wall>)