Isn't it better to use vsvars32.bat? (or vsvars64.bat? - don't have a 64
bit windows)
Here is the batch script for VS 2013, 2012, 2010 (priority in this specific
order)
~
IF EXIST "%VS120COMNTOOLS%" CALL "%VS120COMNTOOLS%vsvars32.bat" && SET
GENERATOR="Visual Studio 12" && GOTO BUILDIF E
And the solution is to remove quotes from the environment variable.
http://stackoverflow.com/a/21842586/13136
Iulian
On Mon, Feb 17, 2014 at 11:47 PM, Iulian-Nicu Şerbănoiu <
undergra...@gmail.com> wrote:
> Hello,
>
> I'm using cmake 2.8.12 on Windows XP. I have a
Hello,
I'm using cmake 2.8.12 on Windows XP. I have an issue when calling
find_path command if an environment variable contains spaces.
Here is my CMakeLists.txt file:
CMAKE_MINIMUM_REQUIRED (VERSION 2.6)
PROJECT (CodeTrainerPlugins)
MESSAGE("$ENV{CODETRAINER_PATH}")
FIND_PATH (CODETRAINER_