KhronosGroup / SPIRV-LLVM-Translator

A tool and a library for bi-directional translation between SPIR-V and LLVM IR
Other
468 stars 209 forks source link

Ability to use system version of SPIRV-Headers without specifying source directory. #2635

Open Zopolis4 opened 2 months ago

Zopolis4 commented 2 months ago

As it stands, there is no way to use a system version of SPIRV-Headers without specifying a source directory.

Something like this would allow an external version to be used without specifying a path, but still leaving the old method as a fallback:

if (SYSTEM_SPIRV_HEADERS AND NOT DEFINED LLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR)
find_package(SPIRV-Headers)
endif()