aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com>2021-07-22 16:50:48 +0100
committerWaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com>2021-07-22 16:50:48 +0100
commit9b5d5f673c31b020f22f58cde5a9729136086d57 (patch)
tree7f785357c19d786a5e2dda1eed03b730bd511628
parent7aaee5ddb6b88e944583428b26985883f0a0ce0d (diff)
Use CCache if it exists
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 66d0461..eed3a89 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -121,6 +121,12 @@ if (ENABLE_LTO)
endif()
endif()
+find_program(CCACHE "ccache")
+if (CCACHE)
+ set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE})
+ set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE})
+endif()
+
option(BUILD_QT_SDL "Build Qt/SDL frontend" ON)
add_subdirectory(src)