Skip to content

Commit a2fe83f

Browse files
committed
cmake: Remove unnecessary ccache logic
Rely on CMAKE_C_COMPILER_LAUNCHER instead of homegrown logic See CMake's documentation for more information https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_LAUNCHER.html
1 parent a9a11d2 commit a2fe83f

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

CMakeLists.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,6 @@ include(sources.cmake)
3333
#-----------------------------------------------------------------------------
3434
option(BUILD_SHARED_LIBS "Build shared library and only the shared library if \"ON\", default is static" OFF)
3535

36-
#-----------------------------------------------------------------------------
37-
# Add support for ccache if desired
38-
#-----------------------------------------------------------------------------
39-
find_program(CCACHE ccache)
40-
41-
if(CCACHE)
42-
option(ENABLE_CCACHE "Enable ccache." ON)
43-
endif()
44-
45-
# use ccache if installed
46-
if(CCACHE AND ENABLE_CCACHE)
47-
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE})
48-
endif()
49-
5036
#-----------------------------------------------------------------------------
5137
# Compose CFLAGS
5238
#-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)