View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0002409 | CMake | CMake | public | 2005-10-26 18:09 | 2005-10-31 09:50 | ||||
Reporter | Filipe Sousa | ||||||||
Assigned To | Ken Martin | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0002409: make clean is not working in sub-projects and sub-directories | ||||||||
Description | fsousa@neptuno:~/tmp/prj$ find . ./prj.c ./CMakeLists.txt ./subdir ./subdir/CMakeLists.txt ./subdir/sublib.c ./subprj ./subprj/CMakeLists.txt ./subprj/subprj.c fsousa@neptuno:~/tmp/prj$ cat ./CMakeLists.txt PROJECT(prj) ADD_SUBDIRECTORY(subprj) ADD_SUBDIRECTORY(subdir) ADD_EXECUTABLE(prj prj.c) fsousa@neptuno:~/tmp/prj$ cat ./subdir/CMakeLists.txt ADD_LIBRARY(sublib sublib.c) fsousa@neptuno:~/tmp/prj$ cat ./subprj/CMakeLists.txt PROJECT(subprj) ADD_EXECUTABLE(subprj subprj.c) fsousa@neptuno:~/tmp/prj$ mkdir build && cd build fsousa@neptuno:~/tmp/prj/build$ cmake --version cmake version 2.3-20051026 fsousa@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@neptuno:~/tmp/prj/build$ make Scanning dependencies of target prj Building C object CMakeFiles/prj.dir/prj.o Linking C executable prj Scanning dependencies of target subprj Building C object subprj/CMakeFiles/subprj.dir/subprj.o Linking C executable subprj Scanning dependencies of target sublib Building C object subdir/CMakeFiles/sublib.dir/sublib.o Linking C static library libsublib.a fsousa@neptuno:~/tmp/prj/build$ make clean fsousa@neptuno:~/tmp/prj/build$ find -type f -name \*.o ./subdir/CMakeFiles/sublib.dir/sublib.o ./subprj/CMakeFiles/subprj.dir/subprj.o fsousa@neptuno:~/tmp/prj/build$ make Building C object CMakeFiles/prj.dir/prj.o Linking C executable prj Linking C executable subprj Linking C static library libsublib.a As you can see make clean does not remove sublib.o and subprj.o | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0003204) Bill Hoffman (manager) 2005-10-31 09:50 |
Thanks for the report, this should be fixed now. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |