File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,17 @@ else()
45
45
set (DIRECTX_HOST_ARCH x64 )
46
46
endif ()
47
47
48
+ #--- Check DIRECTX_ARCH value
49
+ if (CMAKE_SIZEOF_VOID_P EQUAL 8 )
50
+ if (DIRECTX_ARCH MATCHES "x86|^arm$" )
51
+ message (FATAL_ERROR "64-bit toolset mismatch detected for DIRECTX_ARCH setting" )
52
+ endif ()
53
+ elseif (CMAKE_SIZEOF_VOID_P EQUAL 4 )
54
+ if (DIRECTX_ARCH MATCHES "x64|arm64" )
55
+ message (FATAL_ERROR "32-bit toolset mismatch detected for DIRECTX_ARCH setting" )
56
+ endif ()
57
+ endif ()
58
+
48
59
#--- Build with Unicode Win32 APIs per "UTF-8 Everywhere"
49
60
if (WIN32 )
50
61
list (APPEND COMPILER_DEFINES _UNICODE UNICODE )
@@ -166,10 +177,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
166
177
list (APPEND COMPILER_SWITCHES /Zc:lambda )
167
178
endif ()
168
179
169
- if ((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.29 )
170
- AND (NOT VCPKG_TOOLCHAIN ))
171
- list (APPEND COMPILER_SWITCHES /external:W4 )
172
- endif ()
180
+ # GDKX scenarios can't use external:W4
173
181
174
182
if ((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.31 )
175
183
AND (XBOX_CONSOLE_TARGET STREQUAL "durango" ))
You can’t perform that action at this time.
0 commit comments