myx-cmake/MyxCMake/modules/MyxCMakeCodeAnalyzeApplyReplacements.cmake

12 lines
331 B
CMake
Raw Permalink Normal View History

2022-05-06 09:49:46 +00:00
include_guard(GLOBAL)
2021-12-20 11:33:14 +00:00
set(CLANG_APPLY_REPLACEMENTS_NAMES clang-apply-replacements)
foreach(V RANGE 9 15)
list(INSERT CLANG_APPLY_REPLACEMENTS_NAMES 0 "clang-apply-replacements-${V}")
endforeach()
unset(V)
find_program(CLANG_APPLY_REPLACEMENTS_EXE NAMES ${CLANG_APPLY_REPLACEMENTS_NAMES})
unset(CLANG_APPLY_REPLACEMENTS_NAMES)