mirror of
https://github.com/RPCS3/glslang.git
synced 2025-02-08 11:56:53 +00:00
Fix #1328: ENABLE_HLSL=OFF breaking build.
This commit is contained in:
parent
f52b63812a
commit
5d8d7882be
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user