--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -478,12 +478,12 @@ if(NOT MSVC)
 
 	add_compile_options(-fno-math-errno)
 
-	if(X86 OR X86_64)
-		# enable sse2 code generation
+	if(X86)
+		# enable sse2 code generation (enabled by default on X86_64)
 		if(NOT MACOSX)
 			add_compile_options(-msse2)
 		endif()
-		if(NOT X86_64 AND NOT CLANG)
+		if(NOT CLANG)
 			add_compile_options(-mfpmath=sse)
 			# add_compile_options(-mstackrealign)
 		endif()
