Disable VULKAN if clspv is not found
currently the driver won't work without CLSPV
@@ -1532,16 +1532,15 @@ if (ENABLE_VULKAN)
endif()
if(NOT Vulkan_FOUND)
- message(FATAL_ERROR "Vulkan not found")
+ message(FATAL_ERROR "Vulkan library/headers not found")
else()
find_program(CLSPV NAMES clspv HINTS ${CLSPV_DIR})
find_program(CLSPV_REFLECTION NAMES clspv-reflection HINTS ${CLSPV_DIR})
if (CLSPV AND CLSPV_REFLECTION)
- message(STATUS "using clspv")
+ message(STATUS "Found clspv: ${CLSPV}")
set(HAVE_CLSPV ON)
else()
- message(STATUS "please provide a path to clspv & clspv-reflection binaries with -DCLSPV_DIR=...")
- set(HAVE_CLSPV OFF)
+ message(FATAL_ERROR "Could not find clspv. Provide a path to clspv & clspv-reflection binaries with -DCLSPV_DIR=...")
endif()
message(STATUS "Using Vulkan library ${Vulkan_LIBRARY} and Vulkan headers in ${Vulkan_INCLUDE_DIR}")
message(WARNING "Note: Vulkan backend is highly experimental and very incomplete." )
