Browse Source
CMake: Now I remeber all this hacky thing is because PCH
CMake: Now I remeber all this hacky thing is because PCH
Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com>pull/3000/head
5 changed files with 4 additions and 48 deletions
-
17CMakeLists.txt
-
19CMakeModules/DisableCCacheForPackage.cmake
-
5externals/CMakeLists.txt
-
6src/CMakeLists.txt
-
5src/dynarmic/CMakeLists.txt
@ -1,19 +0,0 @@ |
|||||
# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project |
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later |
|
||||
|
|
||||
# Disable CCache for packages that build too fast and break ccache on Windows |
|
||||
function(DisableCCacheForPackage) |
|
||||
if (WIN32) |
|
||||
foreach(target_package IN LISTS ARGV) |
|
||||
if (TARGET ${target_package}) |
|
||||
message(STATUS "[DisableCCacheForPackage] Disabling compiler launcher for target '${target_package}'") |
|
||||
set_target_properties(${target_package} PROPERTIES |
|
||||
C_COMPILER_LAUNCHER "" |
|
||||
CXX_COMPILER_LAUNCHER "" |
|
||||
) |
|
||||
else() |
|
||||
message(WARNING "[DisableCCacheForPackage] Target '${target_package}' does not exist — skipping") |
|
||||
endif() |
|
||||
endforeach() |
|
||||
endif() |
|
||||
endfunction() |
|
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue