Yes, I can confirm it does work under 2.8.7. Ok, I'll have to figure out the 
best way to use 2.8.x. Thanks for your help.

[thunderpig:/src/cmake_foo]$ cmake -P includeTest.cmake
-- INC_COMMON=include_me.cmake
-- I = /src/cmake_foo/include_me.cmake have been included by 
-- I = /src/cmake_foo/include_me.cmake have been included by /src/cmake_foo
-- INC_COMMON=/src/cmake_foo/include_me.cmake
-- I = /src/cmake_foo/include_me.cmake have been included by /src/cmake_foo
-- I = /src/cmake_foo/include_me.cmake have been included by /src/cmake_foo


----- Original Message -----
From: Eric Noulard <[email protected]>
To: Terrence Meiczinger <[email protected]>
Cc: "[email protected]" <[email protected]>
Sent: Wednesday, May 9, 2012 4:55 PM
Subject: Re: [CMake] INCLUDE command within a toolchain file is stripping file 
path if filename is a variable?

2012/5/9 Terrence Meiczinger <[email protected]>:
> First, thanks for the responses. Ok, so I am running cmake 2.6patch4 on RH 
> 5.5.

OK then you should really consider giving 2.8.x a try.
2.6.4 is more than 3 years old and there won't be any new 2.6.x release.

Moreover I wasn't able to reproduce the error with 2.8.8 (or git master).

> I download the code you attached and ran as suggested...
>
> -> cmake -P includeTest.cmake
> -- INC_COMMON=include_me.cmake
> -- I = /h/tmeiczin/CMAKE/include_me.cmake have been included by
> -- I = /h/tmeiczin/CMAKE/include_me.cmake have been included by 
> /h/tmeiczin/CMAKE
> -- INC_COMMON=/include_me.cmake
> CMake Error at includeTest.cmake:8 (include):
>   include could not find load file:
>
>     /include_me.cmake
>
> I'll have a simple test scenario done shortly.

This is not necessary since my simple example seems to fail as it does
for your case.



-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org

--

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