Don't define CPU_X86 on non-x86 processors
This commit is contained in:
+3
-1
@@ -294,9 +294,11 @@ else() # Linux
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
|
||||
message("Host processor is 64bit")
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" CPU_X86_64)
|
||||
else()
|
||||
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "x86")
|
||||
message("Host processor is 32bit")
|
||||
sm_add_compile_definition("${SM_EXE_NAME}" CPU_X86)
|
||||
else()
|
||||
message("Unrecognized host processor type")
|
||||
endif()
|
||||
endif()
|
||||
if (${HAS_FFMPEG})
|
||||
|
||||
Reference in New Issue
Block a user