[CMake] IF(IS_DIRECTORY behaviour

David Somers dsomers at omz13.com
Mon Jun 26 10:48:10 EDT 2006


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?

> 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.

Cheers.

-- 
David Somers


More information about the CMake mailing list