From c619044c4f32da908730dc180005df4da2b377f4 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sun, 2 Sep 2018 23:29:43 +0200 Subject: [PATCH] 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. --- cmake/QuasselMacros.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) -- 2.20.1