Fixing macOS linking of map65

This commit is contained in:
Bill Somerville 2021-04-13 14:28:44 +01:00
parent 6dac83abe2
commit a721be37ff
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -37,11 +37,13 @@ dump_cmake_variables ("portaudio")
if (portaudio_FOUND AND NOT TARGET portaudio::portaudio) if (portaudio_FOUND AND NOT TARGET portaudio::portaudio)
add_library (portaudio::portaudio UNKNOWN IMPORTED) add_library (portaudio::portaudio UNKNOWN IMPORTED)
set_target_properties (portaudio::portaudio PROPERTIES set_target_properties (portaudio::portaudio PROPERTIES
IMPORTED_LOCATION ${portaudio_LIBRARY} IMPORTED_LOCATION "${portaudio_LIBRARY}"
INTERFACE_COMPILE_OPTIONS ${portaudio_PKGCONF_CFLAGS_OTHER} INTERFACE_COMPILE_OPTIONS "${portaudio_PKGCONF_CFLAGS_OTHER}"
INTERFACE_INCLUDE_DIRECTORIES ${portaudio_INCLUDE_DIRS} INTERFACE_INCLUDE_DIRECTORIES "${portaudio_INCLUDE_DIRS}"
INTERFACE_LINK_OPTIONS "${portaudio_PKGCONF_LDFLAGS_OTHER}"
INTERFACE_LINK_DIRECTORIES "${portaudio_PKGCONF_LIBDIR}"
INTERFACE_LINK_LIBRARIES "${portaudio_PKGCONF_LIBRARIES}"
) )
target_link_libraries (portaudio::portaudio INTERFACE ${portaudio_PKGCONF_LDFLAGS})
endif () endif ()
mark_as_advanced ( mark_as_advanced (