Merge pull request #10829 from AdmiralCurtiss/spirv-cross-cmake-fix
Fix CMake Windows build after #10673 (HLSL from SPIRV).
This commit is contained in:
commit
6e09b13ce3
|
@ -47,6 +47,7 @@ endif()
|
|||
endif()
|
||||
|
||||
add_library(spirv_cross STATIC ${SRCS})
|
||||
dolphin_disable_warnings_msvc(spirv_cross)
|
||||
|
||||
target_compile_definitions(spirv_cross PUBLIC SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS)
|
||||
target_include_directories(spirv_cross PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/SPIRV-Cross/include ${CMAKE_CURRENT_SOURCE_DIR}/SPIRV-Cross)
|
||||
|
|
|
@ -14,6 +14,15 @@ PUBLIC
|
|||
spirv_cross
|
||||
)
|
||||
|
||||
target_include_directories(videod3dcommon
|
||||
SYSTEM PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/Externals/glslang/glslang/Public
|
||||
SYSTEM PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/Externals/glslang/StandAlone
|
||||
${CMAKE_SOURCE_DIR}/Externals/glslang/SPIRV
|
||||
${CMAKE_SOURCE_DIR}/Externals/glslang
|
||||
)
|
||||
|
||||
if(MSVC)
|
||||
# Add precompiled header
|
||||
target_link_libraries(videod3dcommon PRIVATE use_pch)
|
||||
|
|
Loading…
Reference in New Issue