aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Novichkov <Wohlstand@users.noreply.github.com>2018-07-30 12:46:05 +0300
committerGitHub <noreply@github.com>2018-07-30 12:46:05 +0300
commit99556c7916f32a8ed80a8e303ff92142570209dd (patch)
tree712722fddc545c5788b466e2bfff4069555e159f
parentb3437fa6a76d946ba6e0c20574fbe4a0b751aab8 (diff)
downloadlibADLMIDI-99556c7916f32a8ed80a8e303ff92142570209dd.tar.gz
libADLMIDI-99556c7916f32a8ed80a8e303ff92142570209dd.tar.bz2
libADLMIDI-99556c7916f32a8ed80a8e303ff92142570209dd.zip
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.
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
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()