Skip to content

Commit

Permalink
Correctly recover CXX_FLAGS in CheckSupportSSE2.cmake (#1861)
Browse files Browse the repository at this point in the history
Signed-off-by: Chongyun Lee <uchkks@protonmail.com>
Co-authored-by: Doug Walker <doug.walker@autodesk.com>
  • Loading branch information
licy183 and doug-walker committed Sep 26, 2023
1 parent 381d1fc commit c429400
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 c429400

Please sign in to comment.