[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -104,7 +104,9 @@ list( APPEND SOURCES
${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_wdmks_utils.c
${TARGET_ROOT}/src/os/win/pa_x86_plain_converters.c
$<$<C_COMPILER_ID:MSVC>:
${TARGET_ROOT}/src/os/win/pa_x86_plain_converters.c
>
>
$<$<PLATFORM_ID:Darwin>: