From 976f7ae1a52b12f8b76da297762b22af09e7b197 Mon Sep 17 00:00:00 2001 From: Chongyun Lee Date: Wed, 20 Sep 2023 17:53:55 +0800 Subject: [PATCH] Correctly recover CXX_FLAGS in CheckSupportSSE2.cmake Signed-off-by: Chongyun Lee --- share/cmake/utils/CheckSupportSSE2.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/cmake/utils/CheckSupportSSE2.cmake b/share/cmake/utils/CheckSupportSSE2.cmake index 8c929c7e9b..6a07155dee 100644 --- a/share/cmake/utils/CheckSupportSSE2.cmake +++ b/share/cmake/utils/CheckSupportSSE2.cmake @@ -59,7 +59,7 @@ else() message(STATUS "Performing Test COMPILER_SUPPORTS_SSE2 - Failed") endif() -set(CMAKE_REQUIRED_FLAGS "${_cmake_cxx_flags_orig}") +set(CMAKE_CXX_FLAGS "${_cmake_cxx_flags_orig}") unset(_cmake_cxx_flags_orig) if(__universal_build)