From 7fd927902f00a72909f3c124cbd194c9ffc130c9 Mon Sep 17 00:00:00 2001 From: azhirnov Date: Wed, 9 Sep 2020 00:40:07 +0300 Subject: fixed cmake, removed unused code --- Graphics/GLSLTools/src/SPIRVUtils.cpp | 12 ------------ Graphics/GraphicsEngineVulkan/CMakeLists.txt | 2 ++ 2 files changed, 2 insertions(+), 12 deletions(-) (limited to 'Graphics') diff --git a/Graphics/GLSLTools/src/SPIRVUtils.cpp b/Graphics/GLSLTools/src/SPIRVUtils.cpp index f550e88e..5ae9d3a1 100644 --- a/Graphics/GLSLTools/src/SPIRVUtils.cpp +++ b/Graphics/GLSLTools/src/SPIRVUtils.cpp @@ -44,18 +44,6 @@ #include "spirv-tools/optimizer.hpp" -// SPIRV-Tools source -#ifdef _MSC_VER -# pragma warning(push, 0) -#endif -#include "source/opt/ir_context.h" -#include "source/opt/module.h" -#include "source/opt/pass.h" -#include "source/opt/instruction.h" -#ifdef _MSC_VER -# pragma warning(pop) -#endif - // clang-format off static const char g_HLSLDefinitions[] = { diff --git a/Graphics/GraphicsEngineVulkan/CMakeLists.txt b/Graphics/GraphicsEngineVulkan/CMakeLists.txt index 40a0f219..497a4e0b 100644 --- a/Graphics/GraphicsEngineVulkan/CMakeLists.txt +++ b/Graphics/GraphicsEngineVulkan/CMakeLists.txt @@ -228,6 +228,8 @@ endif() if(EXISTS ${DXC_SPIRV_PATH}) set(DILIGENT_DXCOMPILER_FOR_SPIRV_PATH "${DXC_SPIRV_PATH}" CACHE INTERNAL "" FORCE) message(STATUS "Found DXCompiler for Vulkan") +else() + set(DILIGENT_DXCOMPILER_FOR_SPIRV_PATH "" CACHE INTERNAL "" FORCE) endif() if(PLATFORM_WIN32) -- cgit v1.2.3