From b53e854480d6e3f446c6aab9507b27a372524034 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Fri, 24 Dec 2021 11:13:48 +0300 Subject: [PATCH] Define ccache as OBJCXX compiler launcher on apple platforms --- CMakeLists.txt | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3342342..4a53e43 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,9 @@ find_program(CCACHE_FOUND ccache) if(CCACHE_FOUND) set(CMAKE_C_COMPILER_LAUNCHER ccache) set(CMAKE_CXX_COMPILER_LAUNCHER ccache) + if (APPLE) + set(CMAKE_OBJCXX_COMPILER_LAUNCHER ccache) + endif() endif(CCACHE_FOUND) set(CMAKE_AUTOMOC ON) -- 1.7.1