Skip to content

Commit

Permalink
CMake: improved output when checking for D3D11/D3D12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Oct 21, 2023
1 parent ae0472d commit c3bf4e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ if(PLATFORM_WIN32 OR PLATFORM_UNIVERSAL_WINDOWS)
try_compile(HAS_D3D11 "${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/BuildTools/CMake/CheckD3D11.cpp")
try_compile(HAS_D3D12 "${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/BuildTools/CMake/CheckD3D12.cpp")
try_compile(HAS_ATL "${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/BuildTools/CMake/CheckATL.cpp")
message("Checking for Direct3D11 and Direct3D12 support:")
message(" d3d11.h found: " ${HAS_D3D11})
message(" d3d12.h found: " ${HAS_D3D12})
message(" atlbase.h found: " ${HAS_ATL})

if (HAS_D3D11 AND HAS_ATL)
set(D3D11_SUPPORTED TRUE CACHE INTERNAL "D3D11 is supported")
Expand Down Expand Up @@ -534,7 +538,7 @@ if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
endif()
endforeach()
set(MAX_DOT_NET_SDK_VERSION ${MAX_DOT_NET_SDK_VERSION} CACHE STRING "Maximum .NET SDK version" FORCE)
message("Maximum .NET SDK version: ${MAX_DOT_NET_SDK_VERSION}")
message(" Maximum .NET SDK version: ${MAX_DOT_NET_SDK_VERSION}")
else()
message("dotnet command is not found. This indicates that .NET SDK is not installed on this machine.")
endif()
Expand Down

0 comments on commit c3bf4e1

Please sign in to comment.