[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_

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 an issue when calling > find_p