[CMake] [BUG] ADD CUSTOM TARGET "broken"

Filipe Sousa filipe at ipb.pt
Mon Jul 4 11:35:30 EDT 2005


On Monday 04 July 2005 16:23, Alexander Neundorf wrote:
> Hi,
>
> it seems ADD_CUSTOM_TARGET() adds the target only in the top level
> makefile, but not in the "local" makefile where it was called (cmake cvs
> june 29th).
> Attached is a testcase with a custom target "foo" both in cmake-act/d1/
> and in cmake-act/d2/.
> "make foo" fails both in cmake-act/d1/ and in cmake-act/d2/.
> "make foo" succeeds in cmake-act/ and makes both foo in d1/ and in d2/
> (which is very nice btw.).

Not only "make foo" fails but also "make rebuild_cache" fails

fsousa at neptuno ~/tmp/cmake-act/build/d2 $ make rebuild_cache 
Running CMake to regenerate build system...
/usr/local/bin/cmake -H.. -B.
CMake Error: The source directory "/home/fsousa/tmp/cmake-act/build" does not 
appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** [rebuild_cache] Error 254


> Bye
> Alex

-- 
Filipe Sousa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20050704/afe90e8d/attachment.pgp


More information about the CMake mailing list