mirror of
https://github.com/badaix/snapcast.git
synced 2025-04-28 17:57:05 +02:00
Use as many threads as cores for clang-tidy
This commit is contained in:
parent
9100119928
commit
ea091483fb
1 changed files with 4 additions and 1 deletions
|
@ -6,9 +6,12 @@ if(CMAKE_VERSION VERSION_EQUAL "3.19.0" OR CMAKE_VERSION VERSION_GREATER
|
|||
# If run-clang-tidy found
|
||||
if(CLANG_TIDY)
|
||||
|
||||
include(ProcessorCount)
|
||||
ProcessorCount(CPU_CORES)
|
||||
|
||||
add_custom_target(
|
||||
clang-tidy
|
||||
COMMAND ${CLANG_TIDY}
|
||||
COMMAND ${CLANG_TIDY} -j ${CPU_CORES}
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
COMMENT "Static code analysis using ${CLANG_TIDY}")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue