[CMake] make clean is not working in subprojects
Filipe Sousa
filipe at ipb.pt
Thu Oct 20 05:34:43 EDT 2005
I just update cmake from cvs and now I have a few problems with subprojects
fsousa at neptuno:~/tmp/prj$ find
.
./CMakeLists.txt
./subprj
./subprj/CMakeLists.txt
./subprj/subprj.c
fsousa at neptuno:~/tmp/prj$ cat ./CMakeLists.txt
PROJECT(prj)
ADD_SUBDIRECTORY(subprj)
fsousa at neptuno:~/tmp/prj$ cat ./subprj/CMakeLists.txt
PROJECT(subprj)
ADD_EXECUTABLE(subprj subprj.c)
fsousa at neptuno:~/tmp/prj$ mkdir build
fsousa at neptuno:~/tmp/prj$ cd build/
fsousa at neptuno:~/tmp/prj/build$ cmake ..
-- Check for working C compiler: gcc
-- Check for working C compiler: gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: c++
-- Check for working CXX compiler: c++ -- works
-- Configuring done
-- Generating done
-- Build files have been written to: /home/fsousa/tmp/prj/build
fsousa at neptuno:~/tmp/prj/build$ make
Scanning dependencies of target subprj
Building C object subprj/CMakeFiles/subprj.dir/subprj.o
Linking C executable subprj
fsousa at neptuno:~/tmp/prj/build$ make clean
fsousa at neptuno:~/tmp/prj/build$ make
Linking C executable subprj
fsousa at neptuno:~/tmp/prj/build$ find -type f -name \*.o
./subprj/CMakeFiles/subprj.dir/subprj.o
fsousa at neptuno:~/tmp/prj/build$ cd subprj/
fsousa at neptuno:~/tmp/prj/build/subprj$ make clean
cd /home/fsousa/tmp/prj/build/subprj && make -f CMakeFiles/Makefile2
subprj/clean
make[1]: Entering directory `/home/fsousa/tmp/prj/build/subprj'
make[1]: CMakeFiles/Makefile2: No such file or directory
make[1]: *** No rule to make target `CMakeFiles/Makefile2'. Stop.
make[1]: Leaving directory `/home/fsousa/tmp/prj/build/subprj'
make: *** [clean] Error 2
Make clean is not working for subprojects
--
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/20051020/5487967b/attachment-0001.pgp
More information about the CMake
mailing list