Giter VIP home page Giter VIP logo

Comments (6)

bska avatar bska commented on July 19, 2024

I can't reproduce those symptoms on my laptop (Ubuntu 12.04 LTS, CMake 2.8.7). In particular,

$ make clean

from the top-level build directory of my (debug-configuration) build tree removes all the .o files as well as the tests and other executables. Granted, there are still quite a lot of generated files in said directory but those (mostly) go away with

$ make distclean

What's your environment?

from opm-core.

rolk avatar rolk commented on July 19, 2024

I cannot reproduce it either;

make
find CMakeFiles/opmcore.dir -name '*.o' | wc -l
make clean
find CMakeFiles/opmcore.dir -name '*.o' | wc -l

gives 98 and 0 respectively.

Maybe it's a rights issue?

What does

strace cmake -P CMakeFiles/opmcore.dir/cmake_clean.cmake 2>&1 | grep ^unlink

return?

from opm-core.

blattms avatar blattms commented on July 19, 2024

Somehow I must have been mistaken. make clean does clean nearly all of the
files.

The following files remain there after make clean:

all modules: the lib.la files
opm-upscaling: bin/.debug

from opm-core.

andlaus avatar andlaus commented on July 19, 2024

In my experience 'make clean' is problematic regardless of the build system. If you checked your stuff out using git and want a pristine source directory (while keeping the modifications of files which are already known to git), it is probably best to use 'git clean -fdx'. If want to remove the cruft from the build directory, the easiest thing is probably to delete it and create a new one...

from opm-core.

rolk avatar rolk commented on July 19, 2024

The following files remain there after make clean; lib.la files, bin/.debug

Those files are created by post-processing of the targets; I haven't found any way to add them to the 'clean' target -- that is a special/magic target which is added by CMake directly into the Makefiles and doesn't work with e.g. add_custom_command. If you use make distclean they should go away, too.

from opm-core.

blattms avatar blattms commented on July 19, 2024

Wow! I like your make distclean. Never understood why this is not there in CMake. Seems to be an attitud kind of thing.

from opm-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.