Browse Source
[cmake] USE_CCACHE option to root and fix debug usage
[cmake] USE_CCACHE option to root and fix debug usage
* ccache on cmake based off SDL2 * remove debug info (/Zi) on Release build and use only on Debug builds * change to Z7 on Debug WHEN using CCACHE Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com>pull/349/head
No known key found for this signature in database
GPG Key ID: 362DA3DC1901E080
6 changed files with 50 additions and 77 deletions
-
27CMakeLists.txt
-
15CMakeModules/MSVCCache.cmake
-
21CMakeModules/MinGWClangCross.cmake
-
26CMakeModules/MinGWCross.cmake
-
21externals/CMakeLists.txt
-
11src/CMakeLists.txt
@ -1,15 +0,0 @@ |
|||||
# SPDX-FileCopyrightText: 2022 yuzu Emulator Project |
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later |
|
||||
|
|
||||
# buildcache wrapper |
|
||||
OPTION(USE_CCACHE "Use buildcache for compilation" OFF) |
|
||||
IF(USE_CCACHE) |
|
||||
FIND_PROGRAM(CCACHE buildcache) |
|
||||
IF (CCACHE) |
|
||||
MESSAGE(STATUS "Using buildcache found in PATH") |
|
||||
SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE}) |
|
||||
SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE}) |
|
||||
ELSE(CCACHE) |
|
||||
MESSAGE(WARNING "USE_CCACHE enabled, but no buildcache executable found") |
|
||||
ENDIF(CCACHE) |
|
||||
ENDIF(USE_CCACHE) |
|
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue