mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 19:07:01 +02:00
clean up launcher helpers
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user