Commit bfd0d1d
committed
CMake: define digidocpp_EXPORTS on digidocpp target for static builds
When BUILD_SHARED_LIBS=OFF on Windows, CMake does not automatically
define digidocpp_EXPORTS on the digidocpp target (it only does this for
shared libraries). This causes DIGIDOCPP_EXPORT in Exports.h to resolve
to __declspec(dllimport) instead of __declspec(dllexport), which is
incorrect when compiling the library itself.
Apply the same pattern already used for digidocpp_util and digidocpp_tsl
at line 83-84: set COMPILE_DEFINITIONS digidocpp_EXPORTS on the target
for static builds.1 parent e232b19 commit bfd0d1d
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
| |||
0 commit comments