Cmake refactoring MSVC