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
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to