Revert "CMake: early-bind plugins"
This reverts commit 45c95bc6.
Some downstream Windows packagers are post-build disabling plugins by deleting
plugin DLLs and their third-party dependency DLLs from shipped
archives/installers. The motivation for this is to avoid licensing constraints
from some third-party dependencies that are incompatible with end users’
requirements. While this previously worked, post
45c95bc6 the dot.exe
binary is no longer
runnable because it unconditionally tries to load these (missing) third-party
DLLs on start up.
While this workflow is unorthodox, there is little advantage to making life harder for Windows packagers who already have enough challenges. Undoing this change seems the path of least pain.
Gitlab: closes #2527 (closed), closes #2528 (closed)
Reported-by: Chiel ten Brinke