
This allows users to specify different genex-based compile definitions for each file in a target. Fixes: #17508
4 lines
133 B
CMake
4 lines
133 B
CMake
enable_language(C)
|
|
add_executable(main main.c)
|
|
set_property(SOURCE main.c PROPERTY COMPILE_DEFINITIONS "$<$<CONFIG:Debug>:MYDEBUG>")
|