Fix linker errors on macOS
This commit is contained in:
@@ -102,11 +102,7 @@ target_link_libraries(
|
||||
Threads::Threads
|
||||
)
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
find_package(X11 REQUIRED)
|
||||
target_link_libraries(ui PRIVATE X11::X11)
|
||||
find_package(ECM NO_MODULE)
|
||||
if (PkgConfig_FOUND)
|
||||
if (PkgConfig_FOUND)
|
||||
pkg_check_modules(RTMIDI rtmidi)
|
||||
if (RTMIDI_FOUND)
|
||||
target_include_directories(plat PRIVATE ${RTMIDI_INCLUDE_DIRS})
|
||||
@@ -118,9 +114,15 @@ if (UNIX AND NOT APPLE)
|
||||
else()
|
||||
target_sources(plat PRIVATE qt_midi.cpp)
|
||||
endif()
|
||||
else()
|
||||
else()
|
||||
target_sources(plat PRIVATE qt_midi.cpp)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
find_package(X11 REQUIRED)
|
||||
target_link_libraries(ui PRIVATE X11::X11)
|
||||
|
||||
find_package(ECM NO_MODULE)
|
||||
if (ECM_FOUND)
|
||||
list(APPEND CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
|
||||
find_package(Wayland COMPONENTS Client)
|
||||
|
Reference in New Issue
Block a user