[CMake] FIND_FILE won't find file if path is semi-colon delimited
Phillip Hellewell
sshock at gmail.com
Tue May 9 17:22:55 EDT 2006
Hi,
I'm trying to use FIND_FILE with cmake 2.4.1 to find a boost header file in
my %INCLUDE% path using this line of code:
FIND_FILE( MYVAR "boost/shared_ptr.hpp" PATHS "$ENV{INCLUDE}" )
If my include environment variable is set to c:\dev\boost_vc71_1_33_1 then
it works!
But....
If my include environment is set to any of the following, it does NOT work:
C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\include\;c:\dev\boost_vc71_1_33_1
"C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\include\";c:\dev\boost_vc71_1_33_1
c:\dev\boost_vc71_1_33_1;C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\include\
c:\dev\boost_vc71_1_33_1;"C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\include\"
Shouldn't cmake be able to handle a semi-colon separated list of paths?
This must be a bug, right?
I haven't tried using the PATH environment variable, but I wonder if it has
the same problem...
Thanks,
Phillip Hellewell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20060509/be8994a9/attachment.html
More information about the CMake
mailing list