Skip to content

Commit 15dc2e9

Browse files
D3D12: Use WINDOWS_SDK_VERSION CMake variable instead of CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION
1 parent 9c77d7a commit 15dc2e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Graphics/GraphicsEngineD3D12/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ PUBLIC
220220
)
221221
target_compile_definitions(Diligent-GraphicsEngineD3D12-shared PUBLIC ENGINE_DLL=1)
222222

223-
if("${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}" VERSION_GREATER_EQUAL "10.0.19041.0")
223+
if("${WINDOWS_SDK_VERSION}" VERSION_GREATER_EQUAL "10.0.19041.0")
224224
set(D3D12_H_HAS_MESH_SHADER ON CACHE INTERNAL "D3D12 headers support mesh shaders" FORCE)
225225
target_compile_definitions(Diligent-GraphicsEngineD3D12-static PRIVATE D3D12_H_HAS_MESH_SHADER=1)
226226
endif()

0 commit comments

Comments
 (0)