We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78c460b commit 10f9f57Copy full SHA for 10f9f57
llvm/cmake/modules/LLVMProcessSources.cmake
@@ -62,7 +62,10 @@ function(llvm_process_sources OUT_VAR)
62
get_filename_component(suf ${fn} EXT)
63
if("${suf}" STREQUAL ".cpp" OR "${suf}" STREQUAL ".c")
64
get_filename_component(short_name ${fn} NAME)
65
- set_source_files_properties(${fn} PROPERTIES COMPILE_DEFINITIONS "__SHORT_FILE__=\"${short_name}\"")
+ set_property(
66
+ SOURCE ${fn}
67
+ APPEND
68
+ PROPERTY COMPILE_DEFINITIONS __SHORT_FILE__="${short_name}")
69
endif()
70
endforeach()
71
0 commit comments