diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt index 1c27d8f9db..92d34972d5 100644 --- a/interface/CMakeLists.txt +++ b/interface/CMakeLists.txt @@ -175,9 +175,14 @@ if (RTMIDI_FOUND AND NOT DISABLE_RTMIDI AND APPLE) target_link_libraries(${TARGET_NAME} ${CoreMIDI}) endif () -if (QXMPP_FOUND AND NOT DISABLE_QXMPP AND WIN32 AND NOT QXMPP_DLL_PATH) - # if we have no QXmpp DLL path, assume we're linking a static QXmpp on windows - add_definitions(-DQXMPP_STATIC) +if (QXMPP_FOUND AND NOT DISABLE_QXMPP AND WIN32) + if (NOT QXMPP_DLL_PATH) + # if we have no QXmpp DLL path, assume we're linking a static QXmpp on windows + add_definitions(-DQXMPP_STATIC) + else () + # otherwise assume we are linking a dynamic QXmpp + add_definitions(-DQXMPP_SHARED) + endif () endif () # include headers for interface and InterfaceConfig.