Skip to content

Commit 42b3fb0

Browse files
authored
Merge pull request #577 from diizzyy/patch-1
cmake: Simplify ccache logic
2 parents a9a11d2 + a2fe83f commit 42b3fb0

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)