Skip to content

Commit

Permalink
Mark ENABLE_CCACHE option as deprecated and turn it into a NOOP
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Jaeckel <[email protected]>
  • Loading branch information
sjaeckel committed Apr 16, 2024
1 parent 15f15ee commit 5410d0b
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,8 @@ include(sources.cmake)
#-----------------------------------------------------------------------------
option(BUILD_SHARED_LIBS "Build shared library and only the shared library if \"ON\", default is static" OFF)

#-----------------------------------------------------------------------------
# Add support for ccache if desired
#-----------------------------------------------------------------------------
find_program(CCACHE ccache)

if(CCACHE)
option(ENABLE_CCACHE "Enable ccache." ON)
endif()

# use ccache if installed
if(CCACHE AND ENABLE_CCACHE)
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE})
if(ENABLE_CCACHE)
message(DEPRECATION "The 'ENABLE_CCACHE' option is deprecated and is a NOOP now. It will be removed in the next major version")
endif()

#-----------------------------------------------------------------------------
Expand Down

0 comments on commit 5410d0b

Please sign in to comment.