Skip to content

Commit

Permalink
ccache options CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
inknos committed Sep 12, 2023
1 parent 0ab8f31 commit 62664c4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,16 @@ endif()
include_directories("${PROJECT_SOURCE_DIR}/include")
include_directories("${PROJECT_SOURCE_DIR}/common")

# ccache options
file(TO_CMAKE_PATH "$ENV{GITHUB_WORKSPACE}" ccache_basedir)
set(ENV{CCACHE_BASEDIR} "${ccache_basedir}")
set(ENV{CCACHE_DIR} "${ccache_basedir}/.ccache")
set(ENV{CCACHE_COMPRESS} "true")
set(ENV{CCACHE_COMPRESSLEVEL} "6")
set(ENV{CCACHE_MAXSIZE} "400M")
if ("${ { matrix.config.cxx } }" STREQUAL "cl")
set(ENV{CCACHE_MAXSIZE} "600M")
endif()

# libdnf5
add_subdirectory("common")
Expand Down

0 comments on commit 62664c4

Please sign in to comment.