Proper CMake SIMD flag handling in soxr

This commit is contained in:
Jack Andersen 2016-05-27 20:58:48 -10:00
parent 793e3d5eff
commit 175aabbb0e
1 changed files with 4 additions and 3 deletions

View File

@ -43,12 +43,13 @@ endif ()
if (HAVE_SIMD)
set (SIMD_SOURCES rate32s vr32s ${RDFT32S} simd)
foreach (source ${SIMD_SOURCES})
set_property (SOURCE ${source} PROPERTY COMPILE_FLAGS ${SIMD_C_FLAGS})
endforeach ()
else ()
set (SIMD_SOURCES vr32)
endif ()
foreach (source ${SIMD_SOURCES})
set_property (SOURCE ${source} PROPERTY COMPILE_FLAGS ${SIMD_C_FLAGS})
endforeach ()
# Libsoxr: