[CMake] [BUG] wrong rule for object file

Brad King brad.king at kitware.com
Fri Dec 9 09:39:14 EST 2005


Alexander Neundorf wrote:
> Hi, 
>  
> with current cvs, the following problem occurs.  
> I have a small testcase attached, it looks like this: 
>  
> ~/src$ tree cmake-ofiles-subdirs 
> cmake-ofiles-subdirs/ 
> |-- CMakeLists.txt 
> |-- foo/ 
> |   |-- foo.cpp 
> |   `-- foo.h 
> `-- main.cpp 
>  
> The project builds without problems. 
> But it has the following problem: 
>  
> ~/src/cmake-ofiles-subdirs$ make foo.o 
> make[1]: *** No rule to make target `CMakeFiles/test.dir/foo.o'.  Stop. 
> make: *** [foo.o] Error 2 

Please submit the test case here:

http://www.cmake.org/Bug

-Brad


More information about the CMake mailing list