aboutsummaryrefslogtreecommitdiff
path: root/raytracing/etc/ccache.cmake
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-03-09 21:49:43 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-03-09 21:49:43 +0800
commit99ac5b94e40b1b95be6ebc061f6dcee4d4dcfed5 (patch)
treea5752bac23c6c1cbfb23130e2e51c1e1155723ec /raytracing/etc/ccache.cmake
parent82be1151b5c9e49ccba238ec6e4b18a2cb8fb23d (diff)
downloadrcc-project-99ac5b94e40b1b95be6ebc061f6dcee4d4dcfed5.tar.gz
rcc-project-99ac5b94e40b1b95be6ebc061f6dcee4d4dcfed5.tar.xz
Establish a well-structured modern C++ project architecture
Focus on code quality: Treat strict warnings as errors, memory checks with Sanitizers, Clang formatting and static analysis Performance optimization: LTO, ccache
Diffstat (limited to 'raytracing/etc/ccache.cmake')
-rw-r--r--raytracing/etc/ccache.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/raytracing/etc/ccache.cmake b/raytracing/etc/ccache.cmake
new file mode 100644
index 0000000..aeceb8e
--- /dev/null
+++ b/raytracing/etc/ccache.cmake
@@ -0,0 +1,5 @@
+find_program(CCACHE_PROGRAM ccache)
+if(CCACHE_PROGRAM)
+ set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
+ message(STATUS "Found ccache: ${CCACHE_PROGRAM} - Compilation will be cached.")
+endif() \ No newline at end of file