Page MenuHomePhabricator | MITK

Support Ninja CMake generator for Visual Studio
Closed, ResolvedPublic

Description

For example, when using the built-in CMake support of Visual Studio 2019, the default generator is Ninja instead of Visual Studio 16 2019. This conflicts with some assumptions we made in our CMake code when calling something like if(MSVC) ... endif() and we then try to extract version information from a generator name like the latter one. See the default Qt location detection code in our top-level CMakeLists.txt for example, which ends up with a path like _64 instead of msvc2019_64.