提交 ea5b265f 编写于 作者: L Liu Yiqun

Fix the setting of simd flags in cmake when there is no avx and sse3 support.

上级 7690e932
......@@ -33,11 +33,11 @@ if(NOT WITH_PROFILER)
endif(NOT WITH_PROFILER)
if(NOT CMAKE_CROSSCOMPILING)
if(WITH_AVX)
if(WITH_AVX AND AVX_FOUND)
set(SIMD_FLAG ${AVX_FLAG})
else(WITH_AVX)
elseif(SSE3_FOUND)
set(SIMD_FLAG ${SSE3_FLAG})
endif(WITH_AVX)
endif()
endif()
if(NOT WITH_GPU)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册