1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 23:59:37 +02:00

[CMAKE] Portaudio: fix support in Cygwin (#438)

* [CMAKE] Portaudio: add unix paths for Cygwin

When building on Cygwin, I got this error:

/home/carlo/audacity/lib-src/portaudio-v19/src/hostapi/oss/pa_unix_oss.c:90:10: fatal error: pa_unix_util.h: No such file or directory
   90 | #include "pa_unix_util.h"

this happened because some additional search path was not included.

* [CMAKE] Portaudio: add missing Unix files in Cygwin

When doing the final link of Audacity executable on Cygwin, many errors like this one were printed on the console.

/usr/lib/gcc/x86_64-pc-cygwin/9.2.0/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/Audacity.dir/AudioIO.cpp.o:AudioIO.cpp:(.text+0x17a): undefined reference to `PaUtil_GetTime'

This happened because some files were missing since Cygwin name was not included together with other unix platforms.
This commit is contained in:
Carlo Bramini 2020-03-03 06:31:56 +01:00 committed by GitHub
parent 2ad3fe5406
commit d8362e0897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ list( APPEND SOURCES
${TARGET_ROOT}/src/hostapi/coreaudio/pa_mac_core_utilities.c
>
$<$<PLATFORM_ID:Darwin,Linux,FreeBSD>:
$<$<PLATFORM_ID:Darwin,Linux,FreeBSD,CYGWIN>:
${TARGET_ROOT}/src/os/unix/pa_unix_hostapis.c
${TARGET_ROOT}/src/os/unix/pa_unix_util.c
>
@ -153,7 +153,7 @@ list( APPEND INCLUDES
${TARGET_ROOT}/src/os/win
>
$<$<PLATFORM_ID:Darwin,Linux,FreeBSD>:
$<$<PLATFORM_ID:Darwin,Linux,FreeBSD,CYGWIN>:
${TARGET_ROOT}/src/os/unix
>