BUG: Fix building libraries as static modules
Static building were not handled - although the CTK_BUILD_SHARED_LIB option is present - and raised inconsistent dll linkage errors when compiling.
Thanks for your contribution. Could you explain why did you have to introduce MY_LIBRARY_TYPE (why using CTK_LIBRARY_MODE was not sufficient)? What operating system/compiler configurations you had problems with and what configurations you used for testing your solution?
@jcfr can you have a look?
Hi! I did this fix with an earlier version of CTK and MY_LIBRARY_TYPE was needed at the time for CMake to configure without error (I can't remember what error since I fix it some time ago now). I've just tried removing it and it works with the PR version, so I guess we don't need it anymore. I work on Windows 10 with Visual Studio 16 2019 and MSVC 19.23.28106.4. I tested the solution only on the same computer.