Skip to content

Commit 2e96d63

Browse files
authored
Fix bad use of CMAKE_SIZEOF_VOID_P (#378)
1 parent dc34de9 commit 2e96d63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ if(MSVC)
332332
target_link_options(${t} PRIVATE /DYNAMICBASE /NXCOMPAT)
333333
endforeach()
334334

335-
if((${CMAKE_SIZEOF_VOID_P} EQUAL 4) AND (NOT ${DIRECTX_ARCH} MATCHES "^arm"))
335+
if((CMAKE_SIZEOF_VOID_P EQUAL 4) AND (NOT ${DIRECTX_ARCH} MATCHES "^arm"))
336336
foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME})
337337
target_link_options(${t} PRIVATE /SAFESEH)
338338
endforeach()
@@ -363,7 +363,7 @@ else()
363363
endif()
364364

365365
if(NOT ${DIRECTX_ARCH} MATCHES "^arm")
366-
if(${CMAKE_SIZEOF_VOID_P} EQUAL "4")
366+
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
367367
set(ARCH_SSE2 $<$<CXX_COMPILER_ID:MSVC>:/arch:SSE2> $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-msse2>)
368368
else()
369369
set(ARCH_SSE2 $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-msse2>)

0 commit comments

Comments
 (0)