Re: [CMake] How to find vcvarsall.bat (e.g. at "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC")? CMAKE_LINKER?

2014-05-10 Thread Iulian-Nicu Şerbănoiu
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

Re: [CMake] find_path doesn't work if environment variable has spaces

2014-02-18 Thread Iulian-Nicu Şerbănoiu
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

[CMake] find_path doesn't work if environment variable has spaces

2014-02-17 Thread Iulian-Nicu Şerbănoiu
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_