1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-20 15:41:18 +01:00

[CMAKE] Portaudio: x86_plain_converters is MSVC only (#476)

As you can see from the original CMakeLists.txt into the sources of Portaudio, the file pa_x86_plain_converters.c can be compiled only with Visual C++, so it should not be include if there is not the Microsoft Compiler.
This commit is contained in:
Carlo Bramini
2020-04-02 16:34:28 +02:00
committed by GitHub
parent b04eff9c67
commit 1437fb38ad

View File

@@ -104,8 +104,10 @@ list( APPEND SOURCES
${TARGET_ROOT}/src/os/win/pa_win_util.c ${TARGET_ROOT}/src/os/win/pa_win_util.c
${TARGET_ROOT}/src/os/win/pa_win_waveformat.c ${TARGET_ROOT}/src/os/win/pa_win_waveformat.c
${TARGET_ROOT}/src/os/win/pa_win_wdmks_utils.c ${TARGET_ROOT}/src/os/win/pa_win_wdmks_utils.c
$<$<C_COMPILER_ID:MSVC>:
${TARGET_ROOT}/src/os/win/pa_x86_plain_converters.c ${TARGET_ROOT}/src/os/win/pa_x86_plain_converters.c
> >
>
$<$<PLATFORM_ID:Darwin>: $<$<PLATFORM_ID:Darwin>:
${TARGET_ROOT}/src/hostapi/coreaudio/pa_mac_core.c ${TARGET_ROOT}/src/hostapi/coreaudio/pa_mac_core.c