Skip to content

Commit 5410d0b

Browse files
committed
Mark ENABLE_CCACHE option as deprecated and turn it into a NOOP
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
1 parent 15f15ee commit 5410d0b

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

CMakeLists.txt

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,8 @@ 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})
36+
if(ENABLE_CCACHE)
37+
message(DEPRECATION "The 'ENABLE_CCACHE' option is deprecated and is a NOOP now. It will be removed in the next major version")
4838
endif()
4939

5040
#-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)