On Tuesday 25 August 2009, Marcel Loose wrote:
> Hi all,
>
> I've been bitten by this more than once. When specifying a module path
> on the command line, you must not forget to make this an absolute path,
> otherwise calling a macro from a (CMakeLists.txt file in a) subdirectory
> will fail.
>
> Would it be an idea to let CMake always convert a relative module path
> to an absolute path, before putting it in the cache?

Hmm, that would be special handling for that one variable.
I guess it should be interpreted as relative to CMAKE_BINARY_DIR ? Wouldn't it 
be confusing if this one variable would be handled differently than all 
others ?

Alex
_______________________________________________
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