[Cmake] Make clean

Gerhard Esterhuizen gerhard at stonethree . com
Wed, 26 Nov 2003 19:30:36 +0200


Brad King wrote:

> On Wed, 26 Nov 2003, Gerhard Esterhuizen wrote:
> 
> There is no portable command line interface for removing files or
> directories that works on all unix/windows/mac systems.  The "cmake -E"
> commands are designed to provide a compatibility layer.

Thanks for the prompt response - now I understand.


> I've just added a FAQ entry for this issue:
> 
> http://www . cmake . org/cgi-bin/cmakefaq . cgi?req=all#5 . 8

I read that and it makes alot of sense. Unfortunately I am now 
struggling with the out-of-source build. I left my ADD_CUSTOM_TARGET 
line unchanged as

ADD_CUSTOM_TARGET(api-docs ALL doxygen api-docs.doxy DEPENDS api-docs.doxy)

and do "cmake _sourcedir_" from the build directory, where "_sourcedir_" 
is the relative path to the source directory from the build directory. 
When I do "make" it complains with a "No rule to make target 
'api-docs.doxy'" (which is the dependancy). What is the correct way of 
specifying the dependancy path so that it is independant of the build 
directory or is this impossible ?

I saw some mention of a CMAKE_CURRENT_SOURCE_DIR make variable in 
another post but it doesn't work either (it expands to an empty path). 
Is this a standard variable ? Where can I obtain a list of CMake make 
variables  ?

Thanks,

    Gerhard


> -Brad
> 
> _______________________________________________
> Cmake mailing list
> Cmake at www . cmake . org
> http://www . cmake . org/mailman/listinfo/cmake

-- 

gerhard esterhuizen <gerhard at stonethree . com>
project engineer

stone three signal processing (pty) ltd
http://www . stonethree . com
+27 21 851 3123 (phone)
+27 21 851 3127 (fax)