summaryrefslogtreecommitdiffstats
path: root/Graphics/ShaderTools
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-09-14 06:26:14 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-09-14 06:26:14 +0000
commit2fc578c3afe1f6b42b99cf72da98ce1bfbf94000 (patch)
tree1f15ad4c60178807b959412a0b3a69afa83e020a /Graphics/ShaderTools
parentFixed linux build error (diff)
downloadDiligentCore-2fc578c3afe1f6b42b99cf72da98ce1bfbf94000.tar.gz
DiligentCore-2fc578c3afe1f6b42b99cf72da98ce1bfbf94000.zip
Fixed UWP build
Diffstat (limited to 'Graphics/ShaderTools')
-rw-r--r--Graphics/ShaderTools/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/Graphics/ShaderTools/CMakeLists.txt b/Graphics/ShaderTools/CMakeLists.txt
index fc91ee14..8ad4b38a 100644
--- a/Graphics/ShaderTools/CMakeLists.txt
+++ b/Graphics/ShaderTools/CMakeLists.txt
@@ -87,10 +87,12 @@ PUBLIC
Diligent-GraphicsEngineInterface
)
-target_compile_definitions(Diligent-ShaderTools PRIVATE DILIGENT_NO_HLSL=$<BOOL:${DILIGENT_NO_HLSL}>)
-if (NOT ${DILIGENT_NO_HLSL})
- target_include_directories(Diligent-ShaderTools PRIVATE ../HLSL2GLSLConverterLib/include)
- target_link_libraries(Diligent-ShaderTools PUBLIC Diligent-HLSL2GLSLConverterLib)
+if (VULKAN_SUPPORTED OR GL_SUPPORTED OR GLES_SUPPORTED)
+ target_compile_definitions(Diligent-ShaderTools PRIVATE DILIGENT_NO_HLSL=$<BOOL:${DILIGENT_NO_HLSL}>)
+ if (NOT ${DILIGENT_NO_HLSL})
+ target_include_directories(Diligent-ShaderTools PRIVATE ../HLSL2GLSLConverterLib/include)
+ target_link_libraries(Diligent-ShaderTools PUBLIC Diligent-HLSL2GLSLConverterLib)
+ endif()
endif()
if(VULKAN_SUPPORTED)