I have vs 2017 and I can set Platform Toolset in IDE:
- Visual Studio 2017 - Windows XP (v141_xp)
- Visual Studio 2017 (v141)
- Visual Studio 2015 (v140)
- Visual Studio 2015 - Windows XP (v140_xp)
I want to cmake build many library(opencv,zlib...) ,and want to build two version:
- one for xp(Visual Studio 2017 - Windows XP (v141_xp)),
- one for windows 10(Visual Studio 2017 (v141))
of course I can cmake output *.sln and open sln ,set up Platform Toolset,build.... but I want to use cmake --build . automatic build
How can I appoint platform toolset for cmake?