mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 07:40:23 +02:00
[CMAKE] LAME: fix compilation error. (#466)
If you try to build local LAME with CMake for i686, you get many error messages like this one: C:/cygwin64/home/Carlo/audacity/lib-src/libmp3lame/vector/xmm_quantize_sub.c: In function 'init_xrpow_core_sse': C:/cygwin64/home/Carlo/audacity/lib-src/libmp3lame/vector/xmm_quantize_sub.c:72:18: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi] The solution is to add the option provided by SSE_FLAGS. So, I replicated in this PR the same fix made for local soundtouch library.
This commit is contained in:
parent
66f566e5c6
commit
22b47bf0ae
@ -53,6 +53,12 @@ list( APPEND DEFINES
|
||||
HAVE_CONFIG_H
|
||||
)
|
||||
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE
|
||||
${MMX_FLAG}
|
||||
${SSE_FLAG}
|
||||
)
|
||||
|
||||
set( HAVE_INT8_T SIZEOF_INT8_T )
|
||||
set( HAVE_INT16_T SIZEOF_INT16_T )
|
||||
set( HAVE_INT32_T SIZEOF_INT32_T )
|
||||
@ -92,5 +98,6 @@ configure_file( lame.h.in public/lame/lame.h )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user