From c3bf4e1aa488adfea6e3c796eb96e3b57fa2edf1 Mon Sep 17 00:00:00 2001 From: assiduous Date: Fri, 20 Oct 2023 17:34:20 -0700 Subject: [PATCH] CMake: improved output when checking for D3D11/D3D12 support --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c38962d75..2925d5ecf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") @@ -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()