B
B
blazert2021-02-26 14:33:04
CMake
blazert, 2021-02-26 14:33:04

MSBuild.exe to get the value of VCTargetsPath: The specified file cannot be found, why?

I didn't find anything on the Internet about this
itself generater_vs2015_x86.bat

@echo off
mkdir vsproject
cd vsproject
cmake .. -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE=Debug
pause

6038dc417a26c342765328.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
klirichek, 2021-06-07
@klirichek

Look at the installation of the studio
Usually it leaves somewhere in a conspicuous place (maybe even in the menu) a couple of batch files that install the desired environment. You can try calling them before calling cmake. They simply put different environment variables in the current console, so that later what is needed for compilation / assembly from the command line is easy to find.
And yes, by the way - `-DCMAKE_BUILD_TYPE=Debug` - won't work! While you are compiling something in the studio or any multiconfig, it’s better to forget about this variable altogether, it will only bring a lot of confusion, which you will have to sort out someday later.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question