mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-11 16:46:16 +00:00
Setup sccache
This commit is contained in:
15
cmake/sccache.cmake
Normal file
15
cmake/sccache.cmake
Normal file
@@ -0,0 +1,15 @@
|
||||
include_guard()
|
||||
|
||||
if(CMAKE_GENERATOR STREQUAL "Ninja")
|
||||
find_program(SCCACHE sccache REQUIRED)
|
||||
|
||||
if (SCCACHE)
|
||||
set(CMAKE_C_COMPILER_LAUNCHER ${SCCACHE})
|
||||
set(CMAKE_CXX_COMPILER_LAUNCHER ${SCCACHE})
|
||||
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT Embedded)
|
||||
|
||||
if(POLICY CMP0141)
|
||||
cmake_policy(SET CMP0141 NEW)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
Reference in New Issue
Block a user