Fwd: [CMake] Error adding rule for
c:/dev/blah/../blah/CMakeLists.txt
Brad King
brad.king at kitware.com
Mon Jun 5 14:36:05 EDT 2006
Phillip Hellewell wrote:
> In Linux with gmake I still have a problem using SUBDIRS (or
> ADD_SUBDIRECTORY) command with a relative path. I am using CMake 2.4.2.
>
> The error I get when I try to run make is:
>
> Scanning dependencies of target mylib
> make[2]: *** No rule to make target
> `../mylib/CMakeFiles/mylib.dir/build'. Stop.
> make[1]: *** [../mylib/CMakeFiles/mylib.dir/all] Error 2
> make: *** [all] Error 2
>
> I attached the same project again. It is the same one as before.
Use
ADD_SUBDIRECTORY(../mylib mylib)
I'm working on a fix to produce a better error message when you do not
do this.
-Brad
More information about the CMake
mailing list