Skip to content

Commit

Permalink
Correctly recover CXX_FLAGS in CheckSupportSSE2.cmake
Browse files Browse the repository at this point in the history
Signed-off-by: Chongyun Lee <[email protected]>
  • Loading branch information
licy183 committed Sep 20, 2023
1 parent 87126fa commit 976f7ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/cmake/utils/CheckSupportSSE2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 976f7ae

Please sign in to comment.