From 5bc42b9d1c5a7601d3883ebc582df4eaeb211017 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 24 Jul 2014 17:02:30 -0700 Subject: [PATCH] add back the lost QXMPP_STATIC definition --- interface/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt index 3138a783b3..c549440334 100644 --- a/interface/CMakeLists.txt +++ b/interface/CMakeLists.txt @@ -172,11 +172,16 @@ if (VISAGE_FOUND AND NOT DISABLE_VISAGE AND APPLE) endif () # special OS X modifications for RtMidi library -if (RTMIDI_FOUND AND NOT DISABLE_RTMIDI AND APPLY) +if (RTMIDI_FOUND AND NOT DISABLE_RTMIDI AND APPLE) find_library(CoreMIDI CoreMIDI) add_definitions(-D__MACOSX_CORE__) target_link_libraries(${TARGET_NAME} ${CoreMIDI}) -endif() +endif () + +if (QXMPP_FOUND AND NOT DISABLE_QXMPP AND WIN32) + # assume we're linking a static Qt on windows + add_definitions(-DQXMPP_STATIC) +endif () # include headers for interface and InterfaceConfig. include_directories("${PROJECT_SOURCE_DIR}/src" "${PROJECT_BINARY_DIR}/includes")