Skip to content

Commit 74fd5a2

Browse files
authored
1 parent 9f4867a commit 74fd5a2

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

cmake/tools.cmake

+12-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ include(${CMAKE_CURRENT_LIST_DIR}/CPM.cmake)
1111
# enables sanitizers support using the the `USE_SANITIZER` flag available values are: Address,
1212
# Memory, MemoryWithOrigins, Undefined, Thread, Leak, 'Address;Undefined'
1313
if(USE_SANITIZER OR USE_STATIC_ANALYZER)
14-
CPMAddPackage("gh:StableCoder/cmake-scripts@23.04")
14+
CPMAddPackage("gh:StableCoder/cmake-scripts#24.04")
1515

1616
if(USE_SANITIZER)
1717
include(${cmake-scripts_SOURCE_DIR}/sanitizers.cmake)
@@ -54,9 +54,17 @@ if(USE_SANITIZER OR USE_STATIC_ANALYZER)
5454

5555
include(${cmake-scripts_SOURCE_DIR}/tools.cmake)
5656

57-
clang_tidy(${CLANG_TIDY_ARGS})
58-
include_what_you_use(${IWYU_ARGS})
59-
cppcheck(${CPPCHECK_ARGS})
57+
if(${CLANG_TIDY})
58+
clang_tidy(${CLANG_TIDY_ARGS})
59+
endif()
60+
61+
if(${IWYU})
62+
include_what_you_use(${IWYU_ARGS})
63+
endif()
64+
65+
if(${CPPCHECK})
66+
cppcheck(${CPPCHECK_ARGS})
67+
endif()
6068
endif()
6169
endif()
6270

0 commit comments

Comments
 (0)