[CMake] IF(IS_DIRECTORY behaviour
Brad King
brad.king at kitware.com
Mon Jun 26 10:58:53 EDT 2006
David Somers wrote:
> On Monday 26 June 2006 16:29, Brad King wrote:
>> David Somers wrote:
> [snip]
>>> BTW, I assume that IS_DIRECTORY works relative to
>>> ${CMAKE_CURRENT_SOURCE_DIR} unless a path to an absolute dir is given...
>>> the help for the IF(IS_DIRECTORY command doesn't state this at all :-(
>> Always use a full path for these options.
>
> When in non-script mode, am I right that it is relative to
> ${CMAKE_CURRENT_SOURCE_DIR?
No. The current working directory of cmake is used for consistency with
script mode.
>> When running in script mode
>> (cmake -P) there is no current source dir.
>
> Sure... but I'm not using this construct from within script mode but in
> regular mode.
>
> Could the cmake help for this be updated to indicate this.
I've added a comment about the behavior being well defined only for full
paths. It will be included when 2.4.3 is released.
-Brad
More information about the CMake
mailing list