From: Manuel Nickschas Date: Sun, 2 Sep 2018 21:29:43 +0000 (+0200) Subject: cmake: Build shared libraries (DLLs) on Windows X-Git-Tag: test-travis-01~148 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=c619044c4f32da908730dc180005df4da2b377f4 cmake: Build shared libraries (DLLs) on Windows Since symbols are now properly marked for export, we can finally enable the building of DLLs on Windows. --- diff --git a/cmake/QuasselMacros.cmake b/cmake/QuasselMacros.cmake index 8ad37f7e..3af589af 100644 --- a/cmake/QuasselMacros.cmake +++ b/cmake/QuasselMacros.cmake @@ -45,9 +45,7 @@ function(quassel_add_module _module) string(REPLACE "::" "_" target ${target}) string(REPLACE "_" "-" output_name ${target}) - # On Windows, building shared libraries requires export headers. - # Let's bother with that later. - if (ARG_STATIC OR WIN32) + if (ARG_STATIC) set(buildmode STATIC) else() set(buildmode SHARED)