Skip to content

Commit 0dcbe70

Browse files
authored
CMake update for Xbox scenarios (#234)
1 parent 3de6f2b commit 0dcbe70

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ cmake_minimum_required (VERSION 3.20)
55

66
set(DIRECTXMATH_VERSION 3.20)
77

8+
if(WINDOWS_STORE OR (DEFINED XBOX_CONSOLE_TARGET))
9+
set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
10+
endif()
11+
812
project(DirectXMath
913
VERSION ${DIRECTXMATH_VERSION}
1014
DESCRIPTION "DirectXMath SIMD C++ math library"

0 commit comments

Comments
 (0)