From: John Kessenich Date: Fri, 6 Apr 2018 01:52:38 +0000 (-0600) Subject: Fix #1328: ENABLE_HLSL=OFF breaking build. X-Git-Tag: upstream/11.4.0~789 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d8d7882beb13d9f7934ab18d0aa4fddcce09527;p=platform%2Fupstream%2Fglslang.git Fix #1328: ENABLE_HLSL=OFF breaking build. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d54ff9b..287e211 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()