From c429400170ccd34902d8a6b26e70c43e26d57751 Mon Sep 17 00:00:00 2001 From: Uchiha Kakashi <45286352+licy183@users.noreply.github.com> Date: Wed, 27 Sep 2023 02:11:58 +0800 Subject: [PATCH] Correctly recover CXX_FLAGS in CheckSupportSSE2.cmake (#1861) Signed-off-by: Chongyun Lee Co-authored-by: Doug Walker --- 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 8c929c7e9..6a07155de 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)