Merge pull request #5 from jbeich/master
Unbreak build on x86 without MMX
This commit is contained in:
commit
060181eaf2
@ -1,3 +1,5 @@
|
|||||||
|
include(CheckCXXCompilerFlag)
|
||||||
|
|
||||||
set(SRCS
|
set(SRCS
|
||||||
src/AAFilter.cpp
|
src/AAFilter.cpp
|
||||||
src/BPMDetect.cpp
|
src/BPMDetect.cpp
|
||||||
@ -14,5 +16,18 @@ set(SRCS
|
|||||||
src/sse_optimized.cpp
|
src/sse_optimized.cpp
|
||||||
src/TDStretch.cpp)
|
src/TDStretch.cpp)
|
||||||
|
|
||||||
|
if(NOT MSVC)
|
||||||
|
check_cxx_compiler_flag(-mmmx SOUNDTOUCH_HAS_MMMX)
|
||||||
|
check_cxx_compiler_flag(-msse SOUNDTOUCH_HAS_MSSE)
|
||||||
|
if(SOUNDTOUCH_HAS_MMMX)
|
||||||
|
set_source_files_properties(src/mmx_optimized.cpp
|
||||||
|
PROPERTIES COMPILE_FLAGS "-mmmx")
|
||||||
|
endif()
|
||||||
|
if(SOUNDTOUCH_HAS_MSSE)
|
||||||
|
set_source_files_properties(src/sse_optimized.cpp
|
||||||
|
PROPERTIES COMPILE_FLAGS "-msse")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
add_library(SoundTouch STATIC ${SRCS})
|
add_library(SoundTouch STATIC ${SRCS})
|
||||||
target_include_directories(SoundTouch PUBLIC include PRIVATE src)
|
target_include_directories(SoundTouch PUBLIC include PRIVATE src)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user