summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
diff options
context:
space:
mode:
authorAl <alastairpatrick@gmail.com>2020-11-21 00:23:03 +0000
committerAl <alastairpatrick@gmail.com>2020-11-21 00:23:03 +0000
commitc7637b850cdbaaffbb806ea6f7f3b15c9c777405 (patch)
tree8ae78e8acd9d307840b80dd1b0864afb4cfcfb08 /Graphics/GraphicsEngineD3D12
parentCMake: enabled malloc scribble and malloc guard edges xcode scheme settings (diff)
downloadDiligentCore-c7637b850cdbaaffbb806ea6f7f3b15c9c777405.tar.gz
DiligentCore-c7637b850cdbaaffbb806ea6f7f3b15c9c777405.zip
Fixed CMake generation error when CMAKE_VS_WINDOWS_TARGET_PALTFORM_VERSION is unavailable
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
-rw-r--r--Graphics/GraphicsEngineD3D12/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineD3D12/CMakeLists.txt b/Graphics/GraphicsEngineD3D12/CMakeLists.txt
index 9941b62b..7f41de50 100644
--- a/Graphics/GraphicsEngineD3D12/CMakeLists.txt
+++ b/Graphics/GraphicsEngineD3D12/CMakeLists.txt
@@ -179,7 +179,7 @@ PUBLIC
)
target_compile_definitions(Diligent-GraphicsEngineD3D12-shared PUBLIC ENGINE_DLL=1)
-if(${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION} STRGREATER_EQUAL "10.0.19041.0")
+if("${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}" STRGREATER_EQUAL "10.0.19041.0")
set(D3D12_H_HAS_MESH_SHADER ON CACHE INTERNAL "D3D12 headers support mesh shaders" FORCE)
target_compile_definitions(Diligent-GraphicsEngineD3D12-static PRIVATE D3D12_H_HAS_MESH_SHADER=1)
endif()