mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 06:40:48 -06:00
11 lines
440 B
CMake
11 lines
440 B
CMake
set(CMAKE_INTERMEDIATE_DIR_STRATEGY SHORT CACHE STRING "" FORCE)
|
|
|
|
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")
|