From 2fc578c3afe1f6b42b99cf72da98ce1bfbf94000 Mon Sep 17 00:00:00 2001 From: assiduous Date: Sun, 13 Sep 2020 23:26:14 -0700 Subject: Fixed UWP build --- Graphics/ShaderTools/CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Graphics/ShaderTools') 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=$) -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=$) + 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) -- cgit v1.2.3