makefile - How can I get CMake to allow for "make clean"ing just one target? -


i have cmakelists.txt multiple targets, of them not part of all.

i want able cleanup (using make) files used in building of 1 of targets, not files used build second target.

what should do?

i see 2 additional options:

  1. using internally each target generated - unfortunately not directly accessible through make root - cmake_clean.cmake scripts. e.g. target named foo be:

    cmake -p cmakefiles/foo.dir/cmake_clean.cmake 
  2. using ninja instead of make generators call

    ninja -t clean foo 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -