From 9003217840d7146e9343bc26c5725ec1ea2f1e76 Mon Sep 17 00:00:00 2001 From: Jose Phillips Date: Sun, 1 Dec 2024 21:44:51 -0500 Subject: [PATCH] fix apple --- src/sound/CMakeLists.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/sound/CMakeLists.txt b/src/sound/CMakeLists.txt index 644deb5c3..386e8a2dc 100644 --- a/src/sound/CMakeLists.txt +++ b/src/sound/CMakeLists.txt @@ -172,9 +172,13 @@ if(OPL4ML) target_compile_definitions(snd PRIVATE USE_OPL4ML) target_sources(snd PRIVATE midi_opl4.c midi_opl4_yrw801.c) endif() - find_package(PkgConfig REQUIRED) - pkg_check_modules(LIBSERIALPORT REQUIRED libserialport) - include_directories(${SERIALPORT_INCLUDE}) - target_link_libraries(86Box ${SERIALPORT_LIBRARIES}) + +find_package(PkgConfig REQUIRED) +pkg_check_modules(SERIALPORT REQUIRED libserialport) +if(APPLE) + include_directories(${LIBSERIALPORT_ROOT}/include) + target_link_libraries(86Box ${LIBSERIALPORT_ROOT}/lib/libserialport.dylib) +endif() + add_subdirectory(resid-fp) target_link_libraries(86Box resid-fp)