|
|
|
@ -155,12 +155,14 @@ if (YUZU_USE_BUNDLED_SIRIT) |
|
|
|
AddJsonPackage(sirit-ci) |
|
|
|
else() |
|
|
|
AddJsonPackage(sirit) |
|
|
|
if(MSVC AND USE_CCACHE AND sirit_ADDED) |
|
|
|
get_target_property(_opts sirit COMPILE_OPTIONS) |
|
|
|
list(FILTER _opts EXCLUDE REGEX "/Zi") |
|
|
|
list(APPEND _opts "/Z7") |
|
|
|
set_target_properties(siritobj PROPERTIES COMPILE_OPTIONS "${_opts}") |
|
|
|
elseif(MSVC AND CXX_CLANG) |
|
|
|
# Change to old-but-more-cacheable debug info on Windows |
|
|
|
if (WIN32 AND (CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")) |
|
|
|
get_target_property(sirit_opts sirit COMPILE_OPTIONS) |
|
|
|
list(FILTER sirit_opts EXCLUDE REGEX "/Zi") |
|
|
|
list(APPEND sirit_opts "/Z7") |
|
|
|
set_target_properties(sirit PROPERTIES COMPILE_OPTIONS "${sirit_opts}") |
|
|
|
endif() |
|
|
|
if(MSVC AND CXX_CLANG) |
|
|
|
target_compile_options(siritobj PRIVATE -Wno-error=unused-command-line-argument) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|