Skip to content

Commit

Permalink
Correctly recover CXX_FLAGS in CheckSupportSSE2.cmake (AcademySoftwar…
Browse files Browse the repository at this point in the history
…eFoundation#1861)

Signed-off-by: Chongyun Lee <[email protected]>
Co-authored-by: Doug Walker <[email protected]>
Signed-off-by: Brooke <[email protected]>
  • Loading branch information
2 people authored and brkglvn01 committed Oct 23, 2023
1 parent a3ce85b commit df6caa2
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 df6caa2

Please sign in to comment.