mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-30 21:51:12 +02:00
update StableCoder/cmake-scripts version
additional info: https://github.com/StableCoder/cmake-scripts/releases https://github.com/StableCoder/cmake-scripts/issues/50
This commit is contained in:
parent
9f4867aa5e
commit
be25ee2721
1 changed files with 12 additions and 4 deletions
|
@ -11,7 +11,7 @@ include(${CMAKE_CURRENT_LIST_DIR}/CPM.cmake)
|
||||||
# enables sanitizers support using the the `USE_SANITIZER` flag available values are: Address,
|
# enables sanitizers support using the the `USE_SANITIZER` flag available values are: Address,
|
||||||
# Memory, MemoryWithOrigins, Undefined, Thread, Leak, 'Address;Undefined'
|
# Memory, MemoryWithOrigins, Undefined, Thread, Leak, 'Address;Undefined'
|
||||||
if(USE_SANITIZER OR USE_STATIC_ANALYZER)
|
if(USE_SANITIZER OR USE_STATIC_ANALYZER)
|
||||||
CPMAddPackage("gh:StableCoder/cmake-scripts@23.04")
|
CPMAddPackage("gh:StableCoder/cmake-scripts#24.04")
|
||||||
|
|
||||||
if(USE_SANITIZER)
|
if(USE_SANITIZER)
|
||||||
include(${cmake-scripts_SOURCE_DIR}/sanitizers.cmake)
|
include(${cmake-scripts_SOURCE_DIR}/sanitizers.cmake)
|
||||||
|
@ -54,9 +54,17 @@ if(USE_SANITIZER OR USE_STATIC_ANALYZER)
|
||||||
|
|
||||||
include(${cmake-scripts_SOURCE_DIR}/tools.cmake)
|
include(${cmake-scripts_SOURCE_DIR}/tools.cmake)
|
||||||
|
|
||||||
clang_tidy(${CLANG_TIDY_ARGS})
|
if(${CLANG_TIDY})
|
||||||
include_what_you_use(${IWYU_ARGS})
|
clang_tidy(${CLANG_TIDY_ARGS})
|
||||||
cppcheck(${CPPCHECK_ARGS})
|
endif()
|
||||||
|
|
||||||
|
if(${IWYU})
|
||||||
|
include_what_you_use(${IWYU_ARGS})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(${CPPCHECK})
|
||||||
|
cppcheck(${CPPCHECK_ARGS})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue