Commit 3c171015 authored by Andreas Sturmlechner's avatar Andreas Sturmlechner Committed by Kurt Hindenburg
Browse files

Revert "CMakeLists.txt: use ccache if present"

Summary:
This was added for feature-parity with Meson-based projects; but an
individual package is the wrong place for that. To avoid the proliferation
of auto-detected ccache support in kde.org packages please submit such
a proposal to kde-frameworks-devel instead, where it could be added for
the benefit of all the projects using ECM. And more importantly, with a
standard switch to disable it for packaging environments

This reverts commit 007c2a08.

Reviewers: #konsole, hindenburg

Reviewed By: #konsole, hindenburg

Subscribers: kkharlamov, hindenburg, konsole-devel, hiangel

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D24805
parent 26f4a221
...@@ -17,18 +17,6 @@ set (KF5_MIN_VERSION "5.6.0") ...@@ -17,18 +17,6 @@ set (KF5_MIN_VERSION "5.6.0")
# Release script will create bugzilla versions # Release script will create bugzilla versions
project(konsole VERSION ${RELEASE_SERVICE_VERSION}) project(konsole VERSION ${RELEASE_SERVICE_VERSION})
find_program(CCACHE_FOUND "ccache")
set(CCACHE_SUPPORT ON CACHE BOOL "Enable ccache support")
if (CCACHE_FOUND AND CCACHE_SUPPORT)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" # GNU is GNU GCC
OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
# without this compiler messages in `make` backend would be uncolored
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=auto")
endif()
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "ccache")
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK "ccache")
endif()
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE) find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH}) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment