add cmake checks caching

This commit is contained in:
ohyzha
2024-10-21 17:56:20 +03:00
parent 74a9294aeb
commit 99a159d554
4 changed files with 44 additions and 2 deletions

View File

@@ -32,6 +32,7 @@ add_subdirectory(boost)
add_subdirectory(units)
add_subdirectory(libjpeg-turbo)
add_subdirectory(msdf)
add_subdirectory(cmake-checks-cache)
if (NOT IOS AND ENABLE_CURL)
add_subdirectory(curl)
endif()

View File

@@ -0,0 +1,14 @@
include (FetchContent)
if(NOT DEFINED CMAKE_CHECKS_REPO)
set(CMAKE_CHECKS_REPO https://github.com/cristianadam/cmake-checks-cache.git)
endif ()
FetchContent_Declare(
cmake-checks-cache
GIT_REPOSITORY ${CMAKE_CHECKS_REPO}
GIT_TAG master
GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(cmake-checks-cache)