From d922ad3d61abd8e0cfbcbf76a800093e6ba838b3 Mon Sep 17 00:00:00 2001 From: Michael Dickens Date: Fri, 25 Jun 2021 15:41:57 -0400 Subject: cmake: correctly set and unset any CMAKE_REQUIRED variables --- host/lib/convert/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/lib/convert') diff --git a/host/lib/convert/CMakeLists.txt b/host/lib/convert/CMakeLists.txt index f9128fe16..aee62c82f 100644 --- a/host/lib/convert/CMakeLists.txt +++ b/host/lib/convert/CMakeLists.txt @@ -23,12 +23,12 @@ endif() set(CMAKE_REQUIRED_FLAGS ${EMMINTRIN_FLAGS}) CHECK_INCLUDE_FILE_CXX(emmintrin.h HAVE_EMMINTRIN_H) -set(CMAKE_REQUIRED_FLAGS) +unset(CMAKE_REQUIRED_FLAGS) if(ENABLE_SSSE3) set(CMAKE_REQUIRED_FLAGS ${TMMINTRIN_FLAGS}) CHECK_INCLUDE_FILE_CXX(tmmintrin.h HAVE_TMMINTRIN_H) -set(CMAKE_REQUIRED_FLAGS) +unset(CMAKE_REQUIRED_FLAGS) endif(ENABLE_SSSE3) if(HAVE_EMMINTRIN_H) -- cgit v1.2.3