Fix DXIL IMPORTED_LOCATION path

This commit is contained in:
docentYT
2026-02-06 16:45:35 +01:00
parent 1ab0be5982
commit 771daa743c

View File

@@ -20,6 +20,14 @@ if (WIN32)
endif () endif ()
# We later pass the DXIL.dll parent directory as first argument to MaSzynaShaderCompiler so that it can sign DX12 shaders # We later pass the DXIL.dll parent directory as first argument to MaSzynaShaderCompiler so that it can sign DX12 shaders
get_target_property(dxil_dll_path Microsoft::DXIL IMPORTED_LOCATION) get_target_property(dxil_dll_path Microsoft::DXIL IMPORTED_LOCATION_RELEASE)
if(NOT dxil_dll_path)
get_target_property(dxil_dll_path Microsoft::DXIL IMPORTED_LOCATION_DEBUG)
endif()
if(NOT dxil_dll_path)
message(FATAL_ERROR "DXIL.dll not found")
endif()
get_filename_component(dxil_dll_path ${dxil_dll_path} DIRECTORY) get_filename_component(dxil_dll_path ${dxil_dll_path} DIRECTORY)
set_target_properties(MaSzynaShaderCompiler PROPERTIES dxil_path "${dxil_dll_path}") set_target_properties(MaSzynaShaderCompiler PROPERTIES dxil_path "${dxil_dll_path}")