Add a check of MSVC variable before setting flags that link the libra… (#814)

* Add a check of MSVC variable before setting flags that link the library with the MSVC static runtime

* Move MSVC guard inside the 'foreach' loop used to force static runtime link
1 file changed