From 3ca5df0f479db82a39ace4962ede193bc18d9152 Mon Sep 17 00:00:00 2001 From: gangliao Date: Fri, 30 Sep 2016 13:53:23 +0800 Subject: [PATCH] Fix bug when only support AVX 2 (#150) In some situation, for instance, in the virtual machine, it could happen. --- cmake/FindAVX.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindAVX.cmake b/cmake/FindAVX.cmake index 58b89918ec6..f6103c6e667 100644 --- a/cmake/FindAVX.cmake +++ b/cmake/FindAVX.cmake @@ -59,7 +59,7 @@ IF(${FIND_AVX_10}) ENDIF() ENDIF() -IF("${FIND_AVX_10}" OR "${FIND_AVX_20}") +IF(${FIND_AVX_10}) SET(AVX_FOUND TRUE) MESSAGE(STATUS "Find CPU supports ${AVX_FLAGS}.") ENDIF() -- GitLab