Skip to content

Commit

Permalink
Merge pull request #115 from Karry/sse-condition
Browse files Browse the repository at this point in the history
use -msse2 flag only when SSE is available
  • Loading branch information
georgmartius authored May 30, 2022
2 parents 6ba034b + 6358058 commit 90c76ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions transcode/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ endif()

# here we should check for SSE2
# our -DUSE_SSE2_ASM code does not work with fpic
if(SSE2_FOUND)
add_definitions( -DUSE_SSE2 -msse2 -ffast-math )
endif()

# Make sure the compiler can find include files from transcode
include_directories (../src ${TRANSCODE_ROOT}/src ${TRANSCODE_ROOT}/ )
Expand Down

0 comments on commit 90c76ac

Please sign in to comment.