1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-30 13:41:13 +02:00

update StableCoder/cmake-scripts version (#187)

additional info:
https://github.com/StableCoder/cmake-scripts/releases
https://github.com/StableCoder/cmake-scripts/issues/50
This commit is contained in:
Volodymyr 2024-04-21 22:40:54 +00:00 committed by GitHub
parent 9f4867aa5e
commit 74fd5a2ff8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,7 +11,7 @@ include(${CMAKE_CURRENT_LIST_DIR}/CPM.cmake)
# enables sanitizers support using the the `USE_SANITIZER` flag available values are: Address,
# Memory, MemoryWithOrigins, Undefined, Thread, Leak, 'Address;Undefined'
if(USE_SANITIZER OR USE_STATIC_ANALYZER)
CPMAddPackage("gh:StableCoder/cmake-scripts@23.04")
CPMAddPackage("gh:StableCoder/cmake-scripts#24.04")
if(USE_SANITIZER)
include(${cmake-scripts_SOURCE_DIR}/sanitizers.cmake)
@ -54,10 +54,18 @@ if(USE_SANITIZER OR USE_STATIC_ANALYZER)
include(${cmake-scripts_SOURCE_DIR}/tools.cmake)
if(${CLANG_TIDY})
clang_tidy(${CLANG_TIDY_ARGS})
endif()
if(${IWYU})
include_what_you_use(${IWYU_ARGS})
endif()
if(${CPPCHECK})
cppcheck(${CPPCHECK_ARGS})
endif()
endif()
endif()
# enables CCACHE support through the USE_CCACHE flag possible values are: YES, NO or equivalent