|
| 1 | +diff --git a/src/kconfig_compiler/CMakeLists.txt b/src/kconfig_compiler/CMakeLists.txt |
| 2 | +--- a/src/kconfig_compiler/CMakeLists.txt |
| 3 | ++++ b/src/kconfig_compiler/CMakeLists.txt |
| 4 | +@@ -23,6 +23,10 @@ |
| 5 | + |
| 6 | + target_link_libraries(kconfig_compiler Qt6::Xml) |
| 7 | + |
| 8 | ++if(MSVC AND NOT BUILD_SHARED_LIBS) |
| 9 | ++ target_link_options(kconfig_compiler PRIVATE /FORCE:MULTIPLE) |
| 10 | ++endif() |
| 11 | ++ |
| 12 | + ecm_mark_nongui_executable(kconfig_compiler) |
| 13 | + |
| 14 | + install(TARGETS kconfig_compiler EXPORT KF6ConfigCompilerTargets DESTINATION ${KDE_INSTALL_LIBEXECDIR_KF}) |
| 15 | +diff --git a/src/kconf_update/CMakeLists.txt b/src/kconf_update/CMakeLists.txt |
| 16 | +--- a/src/kconf_update/CMakeLists.txt |
| 17 | ++++ b/src/kconf_update/CMakeLists.txt |
| 18 | +@@ -12,6 +12,9 @@ |
| 19 | + ) |
| 20 | + |
| 21 | + target_link_libraries(kconf_update Qt6::Core KF6::ConfigCore) |
| 22 | ++if(MSVC AND NOT BUILD_SHARED_LIBS) |
| 23 | ++ target_link_options(kconf_update PRIVATE /FORCE:MULTIPLE) |
| 24 | ++endif() |
| 25 | + include(ECMMarkNonGuiExecutable) |
| 26 | + ecm_mark_nongui_executable(kconf_update) |
| 27 | + |
| 28 | +diff --git a/src/kreadconfig/CMakeLists.txt b/src/kreadconfig/CMakeLists.txt |
| 29 | +--- a/src/kreadconfig/CMakeLists.txt |
| 30 | ++++ b/src/kreadconfig/CMakeLists.txt |
| 31 | +@@ -2,6 +2,9 @@ |
| 32 | + ecm_mark_nongui_executable(kreadconfig6) |
| 33 | + |
| 34 | + target_link_libraries(kreadconfig6 KF6::ConfigCore) |
| 35 | ++if(MSVC AND NOT BUILD_SHARED_LIBS) |
| 36 | ++ target_link_options(kreadconfig6 PRIVATE /FORCE:MULTIPLE) |
| 37 | ++endif() |
| 38 | + |
| 39 | + install(TARGETS kreadconfig6 ${KF_INSTALL_TARGETS_DEFAULT_ARGS}) |
| 40 | + |
| 41 | +@@ -11,5 +14,8 @@ |
| 42 | + ecm_mark_nongui_executable(kwriteconfig6) |
| 43 | + |
| 44 | + target_link_libraries(kwriteconfig6 KF6::ConfigCore) |
| 45 | ++if(MSVC AND NOT BUILD_SHARED_LIBS) |
| 46 | ++ target_link_options(kwriteconfig6 PRIVATE /FORCE:MULTIPLE) |
| 47 | ++endif() |
| 48 | + |
| 49 | + install(TARGETS kwriteconfig6 ${KF_INSTALL_TARGETS_DEFAULT_ARGS}) |
0 commit comments