You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
427 B
16 lines
427 B
4 years ago
|
|
||
|
enable_language(C)
|
||
|
|
||
|
cmake_policy (SET CMP0101 OLD)
|
||
|
|
||
|
add_executable (CMP0101_OLD CMP0101.c)
|
||
|
target_compile_options (CMP0101_OLD PRIVATE -UBEFORE_KEYWORD)
|
||
|
target_compile_options (CMP0101_OLD BEFORE PRIVATE -DBEFORE_KEYWORD)
|
||
|
|
||
|
|
||
|
cmake_policy (SET CMP0101 NEW)
|
||
|
|
||
|
add_executable (CMP0101_NEW CMP0101.c)
|
||
|
target_compile_options (CMP0101_NEW PRIVATE -UBEFORE_KEYWORD)
|
||
|
target_compile_options (CMP0101_NEW BEFORE PRIVATE -DBEFORE_KEYWORD)
|