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.
9 lines
374 B
9 lines
374 B
5 years ago
|
enable_language(C)
|
||
|
|
||
|
# Make sure compile command is not hidden in a temp file.
|
||
|
string(REPLACE "${CMAKE_START_TEMP_FILE}" "" CMAKE_C_COMPILE_OBJECT "${CMAKE_C_COMPILE_OBJECT}")
|
||
|
string(REPLACE "${CMAKE_END_TEMP_FILE}" "" CMAKE_C_COMPILE_OBJECT "${CMAKE_C_COMPILE_OBJECT}")
|
||
|
|
||
|
add_executable(hello hello.c)
|
||
|
target_compile_definitions(hello PRIVATE "DEFINE_FOR_VERBOSE_DETECTION")
|