Don't define CPU_X86 on non-x86 processors

This commit is contained in:
Colin Wallace
2015-10-21 06:28:30 +00:00
parent 22d6f792f3
commit dcd676b956
+3 -1
View File
@@ -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})