From 68f480e2efc9080db301cd8aab8911c830b0b5e3 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Sat, 17 Jul 2021 23:56:16 +0300 Subject: Build: Don't build shared library where impossible At several platforms the shared library is an impossible thing --- CMakeLists.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e6df8c0..090a6c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,8 +121,16 @@ else() set(DEFAULT_HEAVY_EMULATORS ON) endif() -option(libADLMIDI_STATIC "Build static library of libADLMIDI" ON) -option(libADLMIDI_SHARED "Build shared library of libADLMIDI" OFF) +if(NOT EMSCRIPTEN + AND NOT VITA + AND NOT 3DS + AND NOT ADLMIDI_DOS) + option(libADLMIDI_STATIC "Build static library of libADLMIDI" ON) + option(libADLMIDI_SHARED "Build shared library of libADLMIDI" OFF) +else() + set(libADLMIDI_STATIC ON) + set(libADLMIDI_SHARED OFF) +endif() option(WITH_MIDI_SEQUENCER "Build with embedded MIDI sequencer. Disable this if you want use library in real-time MIDI drivers or plugins." ON) option(WITH_EMBEDDED_BANKS "Use embedded banks" ON) -- cgit v1.2.3