From 3ae41b79aa0612e9d95f7d11e42de84f5d5a0eb2 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 20 Mar 2025 17:15:54 -0700 Subject: [PATCH] CMake fix for legacy Durango (#597) --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d50fc47..3f631bf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,10 @@ cmake_minimum_required (VERSION 3.20) set(DIRECTXTEX_VERSION 2.0.6) +if(XBOX_CONSOLE_TARGET STREQUAL "durango") + set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY") +endif() + project (DirectXTex VERSION ${DIRECTXTEX_VERSION} DESCRIPTION "DirectX Texture Library"