clean up launcher helpers

This commit is contained in:
nmzik
2026-09-17 19:50:03 +04:00
parent 2bf78a94e0
commit 218e7200bb
17 changed files with 28 additions and 166 deletions
-21
View File
@@ -48,27 +48,6 @@ function(clang_tidy_check target config headers dirs)
endif()
endfunction()
function(clang_tidy_fix target config headers dirs)
if (KYTY_ENABLE_CLANG_TIDY AND CLANG AND ("${target}" IN_LIST KYTY_CLANG_TIDY))
find_program (CLANG_TIDY_EXE NAMES "clang-tidy")
if (CLANG_TIDY_EXE)
set(std_arg "-extra-arg=-std=c++${CMAKE_CXX_STANDARD}")
foreach(dir ${dirs})
list(APPEND incdirs "-extra-arg=-I${dir}")
endforeach()
foreach(header ${headers})
list(APPEND filter "(${header}.*)")
endforeach()
string(REPLACE ";" "|" filter "${filter}")
if ("${config}" STREQUAL "")
set_target_properties(${target} PROPERTIES CXX_CLANG_TIDY "${CLANG_TIDY_EXE};-fix;-format-style=file;-header-filter=${filter};${std_arg};${incdirs}")
else()
set_target_properties(${target} PROPERTIES CXX_CLANG_TIDY "${CLANG_TIDY_EXE};-fix;-format-style=file;-config=${config};-header-filter=${filter};${std_arg};${incdirs}")
endif()
endif()
endif()
endfunction()
macro(config_compiler_and_linker)
set(KYTY_WARNINGS_ARE_ERRORS OFF)