Skip to content

Commit

Permalink
chore: enable CPM build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirdEyeSqueegee committed Oct 25, 2023
1 parent 15a29ea commit d50aa5f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CommonLibSF/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ if(USING_VCPKG)
else()
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/CPM.cmake")

set(CPM_SOURCE_CACHE "${CMAKE_CURRENT_BINARY_DIR}/.cpm")

CPMAddPackage(
GITHUB_REPOSITORY gabime/spdlog
VERSION 1.12.0
Expand Down Expand Up @@ -213,3 +215,10 @@ install(
include/SFSE
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)

if(NOT USING_VCPKG)
set_property(
TARGET ${PROJECT_NAME}
APPEND PROPERTY ADDITIONAL_CLEAN_FILES ${CPM_SOURCE_CACHE} ${CMAKE_CURRENT_BINARY_DIR}/_deps
)
endif()

0 comments on commit d50aa5f

Please sign in to comment.