[externals] Fix usage of USE_CCACHE for Sirit (#282)
This Fixes usage of USE_CCACHE for Sirit. Credit: DraVee Reviewed-on: #282 Reviewed-by: crueter <crueter@eden-emu.dev> Co-authored-by: MaranBr <maranbr@outlook.com> Co-committed-by: MaranBr <maranbr@outlook.com>
This commit is contained in:
parent
12f5a96f01
commit
1307f3510d
1 changed files with 7 additions and 0 deletions
7
externals/CMakeLists.txt
vendored
7
externals/CMakeLists.txt
vendored
|
@ -155,6 +155,13 @@ AddPackage(
|
||||||
"SIRIT_USE_SYSTEM_SPIRV_HEADERS ON"
|
"SIRIT_USE_SYSTEM_SPIRV_HEADERS ON"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(MSVC AND USE_CCACHE AND TARGET sirit)
|
||||||
|
get_target_property(_opts sirit COMPILE_OPTIONS)
|
||||||
|
list(FILTER _opts EXCLUDE REGEX "/Zi")
|
||||||
|
list(APPEND _opts "/Z7")
|
||||||
|
set_target_properties(sirit PROPERTIES COMPILE_OPTIONS "${_opts}")
|
||||||
|
endif()
|
||||||
|
|
||||||
# httplib
|
# httplib
|
||||||
if (ENABLE_WEB_SERVICE OR ENABLE_QT_UPDATE_CHECKER)
|
if (ENABLE_WEB_SERVICE OR ENABLE_QT_UPDATE_CHECKER)
|
||||||
AddPackage(
|
AddPackage(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue