On Thu, Feb 17, 2011 at 11:25 AM, John Drescher <dresche...@gmail.com> wrote:
> On Thu, Feb 17, 2011 at 11:05 AM, David Cole <david.c...@kitware.com> wrote:
>> Are you escaping the "\" characters, like this?
>> set(BOOST_ROOT "X:\\32bit\\VC ...")
>>
>> Or using the CMake convention "/" as a path separator character?
>> set(BOOST_ROOT "X:/32bit/VC ...")
>> (this is the one you should be doing...)
>>
> I see. I set an BOOST_ROOT as an environment variable instead of a
> CMake variable. It works when I set BOOST_ROOT as a CMake variable.
>

Hmm. That should have worked since the FindBoost.cmake evaluates the
environment variable BOOST_ROOT or BOOSTROOT

 # If BOOST_ROOT was defined in the environment, use it.
  if (NOT BOOST_ROOT AND NOT $ENV{BOOST_ROOT} STREQUAL "")
    set(BOOST_ROOT $ENV{BOOST_ROOT})
  endif()

  # If BOOSTROOT was defined in the environment, use it.
  if (NOT BOOST_ROOT AND NOT $ENV{BOOSTROOT} STREQUAL "")
    set(BOOST_ROOT $ENV{BOOSTROOT})
  endif()

I will try to figure this one out..
John
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to