BUG: Fix link warnings for static build on windows.
This fixes https://open.cdash.org/viewBuildError.php?type=1&buildid=3862217
A better fix seems to be to use CMAKE_STATIC_LINKER_FLAGS but that is not set.
This fixes https://open.cdash.org/viewBuildError.php?type=1&buildid=3862217
A better fix seems to be to use CMAKE_STATIC_LINKER_FLAGS but that is not set.