Skip to content
Snippets Groups Projects
Commit 5d8d7882 authored by John Kessenich's avatar John Kessenich
Browse files

Fix #1328: ENABLE_HLSL=OFF breaking build.

parent f52b6381
No related branches found
No related tags found
No related merge requests found
......@@ -95,8 +95,10 @@ endif()
if(ENABLE_OPT)
message(STATUS "optimizer enabled")
add_definitions(-DENABLE_OPT=1)
elseif(ENABLE_HLSL)
message(STATUS "spirv-tools not linked - illegal SPIRV may be generated for HLSL")
else()
if(ENABLE_HLSL)
message(STATUS "spirv-tools not linked - illegal SPIRV may be generated for HLSL")
endif()
add_definitions(-DENABLE_OPT=0)
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment