Skip to content

Commit

Permalink
Change warning to error if spirv-tools not found
Browse files Browse the repository at this point in the history
Emit an error if optimizations are enabled but spirv-tools dependency is
not found.
  • Loading branch information
jeremy-lunarg committed Jan 16, 2025
1 parent 8b0e7b6 commit b5dc387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ if(NOT TARGET SPIRV-Tools-opt)
find_package(SPIRV-Tools-opt)
if(NOT TARGET SPIRV-Tools-opt)
if(ENABLE_OPT)
message(WARNING "ENABLE_OPT set but SPIR-V tools not found! Disabling SPIR-V optimization.")
message(SEND_ERROR "ENABLE_OPT set but SPIR-V tools not found! Disabling SPIR-V optimization.")
endif()
set(ENABLE_OPT OFF)
endif()
Expand Down

0 comments on commit b5dc387

Please sign in to comment.