FindwxWidgets module: Does not link to scintilla in static build
When using the static build of wxWidgets, an application using the stc library (the stc
component in find_package()
, see also CMake variable WX_stc(d)
) must also link to the scintilla library itself. The scintilla library built by wxWidgets is found (see CMake variable WX_scintilla(d)
) but not used. Since wxWidgets 3.1.4, the statically linked stc library also requires Windows library imm32
.
This is basically the same as when using the other 3rd party libraries (see wxWidgets_COMMON_LIBRARIES
variable, i.e., png, tiff, jpeg, zlib, regex, and expat).
Unfortunately, my knowledge of CMake and FindwxWidgets module is not good enough to propose a fix.
Edited by PB