From 99556c7916f32a8ed80a8e303ff92142570209dd Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Mon, 30 Jul 2018 12:46:05 +0300 Subject: Added missing macro for DLL build The macro `ADLMIDI_BUILD_DLL` tells to use the `dllexport` attribute for public symbols. It's required, otherwise, symbol will not be available. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d1fad6..2d4cec2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -296,6 +296,9 @@ if(libADLMIDI_SHARED) set_legacy_standard(ADLMIDI_shared) set_visibility_hidden(ADLMIDI_shared) list(APPEND libADLMIDI_INSTALLS ADLMIDI_shared) + if(WIN32) + target_compile_definitions(ADLMIDI_shared PRIVATE "-DADLMIDI_BUILD_DLL") + endif() if(WITH_EMBEDDED_BANKS AND WITH_GENADLDATA) add_dependencies(ADLMIDI_shared gen-adldata-run) endif() -- cgit v1.2.3