Define ccache as OBJCXX compiler launcher on apple platforms
authorCryptoManiac <balthazar.ad@gmail.com>
Fri, 24 Dec 2021 08:13:48 +0000 (11:13 +0300)
committerCryptoManiac <balthazar.ad@gmail.com>
Fri, 24 Dec 2021 08:13:48 +0000 (11:13 +0300)
CMakeLists.txt

index 3342342..4a53e43 100644 (file)
@@ -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)