[cmake] enforce sirit::sirit
Some checks failed
eden-license / license-header (pull_request) Failing after 25s
Some checks failed
eden-license / license-header (pull_request) Failing after 25s
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
3048ea8787
commit
95b0fac1f9
3 changed files with 10 additions and 11 deletions
17
externals/CMakeLists.txt
vendored
17
externals/CMakeLists.txt
vendored
|
@ -72,15 +72,14 @@ if (YUZU_USE_BUNDLED_SIRIT)
|
||||||
AddJsonPackage(sirit-ci)
|
AddJsonPackage(sirit-ci)
|
||||||
else()
|
else()
|
||||||
AddJsonPackage(sirit)
|
AddJsonPackage(sirit)
|
||||||
endif()
|
if(MSVC AND USE_CCACHE AND sirit_ADDED)
|
||||||
|
get_target_property(_opts sirit COMPILE_OPTIONS)
|
||||||
if(MSVC AND USE_CCACHE AND sirit_ADDED)
|
list(FILTER _opts EXCLUDE REGEX "/Zi")
|
||||||
get_target_property(_opts sirit COMPILE_OPTIONS)
|
list(APPEND _opts "/Z7")
|
||||||
list(FILTER _opts EXCLUDE REGEX "/Zi")
|
set_target_properties(siritobj PROPERTIES COMPILE_OPTIONS "${_opts}")
|
||||||
list(APPEND _opts "/Z7")
|
elseif(MSVC AND CXX_CLANG)
|
||||||
set_target_properties(sirit PROPERTIES COMPILE_OPTIONS "${_opts}")
|
target_compile_options(siritobj PRIVATE -Wno-error=unused-command-line-argument)
|
||||||
elseif(MSVC AND CXX_CLANG)
|
endif()
|
||||||
target_compile_options(sirit PRIVATE -Wno-error=unused-command-line-argument)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# httplib
|
# httplib
|
||||||
|
|
|
@ -246,7 +246,7 @@ add_library(shader_recompiler STATIC
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(shader_recompiler PUBLIC common fmt::fmt sirit SPIRV-Tools::SPIRV-Tools)
|
target_link_libraries(shader_recompiler PUBLIC common fmt::fmt sirit::sirit SPIRV-Tools::SPIRV-Tools)
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
target_compile_options(shader_recompiler PRIVATE
|
target_compile_options(shader_recompiler PRIVATE
|
||||||
|
|
|
@ -333,7 +333,7 @@ target_link_options(video_core PRIVATE ${FFmpeg_LDFLAGS})
|
||||||
add_dependencies(video_core host_shaders)
|
add_dependencies(video_core host_shaders)
|
||||||
target_include_directories(video_core PRIVATE ${HOST_SHADERS_INCLUDE})
|
target_include_directories(video_core PRIVATE ${HOST_SHADERS_INCLUDE})
|
||||||
|
|
||||||
target_link_libraries(video_core PRIVATE sirit)
|
target_link_libraries(video_core PRIVATE sirit::sirit)
|
||||||
|
|
||||||
# Header-only stuff needed by all dependent targets
|
# Header-only stuff needed by all dependent targets
|
||||||
target_link_libraries(video_core PUBLIC Vulkan::UtilityHeaders GPUOpen::VulkanMemoryAllocator)
|
target_link_libraries(video_core PUBLIC Vulkan::UtilityHeaders GPUOpen::VulkanMemoryAllocator)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue