SWDEV-316665 - Use CMAKE_SIZEOF_VOID_P to detect 32bit build

Change-Id: If959b0d012caa55afbe54f0fe7da8ad3cca6d452
This commit is contained in:
Jason Tang
2022-03-09 18:26:31 -05:00
committed by Jason Tang
parent c0ada20664
commit 7356d2ecb1
+1 -1
View File
@@ -95,7 +95,7 @@ else()
target_compile_definitions(rocclr PUBLIC ATI_OS_LINUX)
endif()
if(NOT CMAKE_CL_64)
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
target_compile_definitions(rocclr PUBLIC ATI_BITS_32)
endif()