Re: [CMake] an easy way to clean cmake generated files?

2015-03-25 Thread Bill Hoffman

On 3/25/2015 7:37 AM, Vaishakh wrote:

git clean -d -f -x

Build out of source.

rm -rf

-Bill


--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoff...@kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


Re: [CMake] an easy way to clean cmake generated files?

2015-03-25 Thread Vaishakh
git clean -d -f -x

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


Re: [CMake] an easy way to clean cmake generated files?

2008-03-25 Thread Bill Hoffman

Ákos Maróy wrote:

Philip Lowman wrote:
Yes, I agree.  I'm sure there are people out there that use custom 
scripts with CMake that generate files that can't be tracked by 
CMake.  I would argue this is a small use case.  Those users shouldn't 
expect CMake to clean up their stuff for them automatically.  That's 
what ADDITIONAL_MAKE_CLEAN_FILES is for.  CMake should be capable of 
cleaning up after itself though.


totally agree..


I am not technically or morally opposed to doing this.  However, using 
out of source builds is a good way to get around this issue.  If someone 
wants to submit a well tested patch, I will have no problem applying it. 
 However, I must admit that I currently have bigger fish to fry.  :)


-Bill
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] an easy way to clean cmake generated files?

2008-03-25 Thread Anka Kochanowska

There is an easy way to avoid the problem - build in a separate directory.
Separating sources is a very good practice.
Anka


Philip Lowman wrote:
On Mon, Mar 24, 2008 at 4:51 AM, Ákos Maróy <[EMAIL PROTECTED] 
> wrote:


Hi,

I wonder if there's an easy, straightforward way to clean a cmake
project of _all_ cmake-generated files? This would include:

CMakeCache.txt
cmake_install.cmake
CMakeFiles

and all of these in subdirectories added to the project with the
add_subdirectory() statement..


I've filed a feature request for this (i.e. a "distclean" target for 
CMake).  It keeps coming up on the mailing list so it probably would 
make a nice addition to CMake.  I've needed it before too when 
stubborn coworkers really want to keep using in-source build trees but 
want to return their source trees to a pristine state.


http://public.kitware.com/Bug/view.php?id=6647

--
Philip Lowman


___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] an easy way to clean cmake generated files?

2008-03-25 Thread Ákos Maróy

Philip Lowman wrote:
Yes, I agree.  I'm sure there are people out there that use custom 
scripts with CMake that generate files that can't be tracked by CMake.  
I would argue this is a small use case.  Those users shouldn't expect 
CMake to clean up their stuff for them automatically.  That's what 
ADDITIONAL_MAKE_CLEAN_FILES is for.  CMake should be capable of cleaning 
up after itself though.


totally agree..
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] an easy way to clean cmake generated files?

2008-03-25 Thread Philip Lowman
On Tue, Mar 25, 2008 at 3:08 AM, Ákos Maróy <[EMAIL PROTECTED]> wrote:

> Christian Ehrlicher wrote:
> >
> http://www.cmake.org/Wiki/CMake_FAQ#CMake_does_not_generate_a_.22make_distclean.22_target._Why.3F
> >
> > So I doubt such a target could be added without someone crying why his
> generated file did not get cleaned up...
>
> but, you could easily create a 'best-effort' distclean, that:
>
> - cleans up all files generated by CMake directly
> - provides hooks for external commands to do the same
>
> thus if the implementer does not use external commands to generate
> files, it works out of the box.
>
> if he does, he has a way of cleaning his files up, by attaching to the
> hooks provided, and cleaning up after himself there.


Yes, I agree.  I'm sure there are people out there that use custom scripts
with CMake that generate files that can't be tracked by CMake.  I would
argue this is a small use case.  Those users shouldn't expect CMake to clean
up their stuff for them automatically.  That's what
ADDITIONAL_MAKE_CLEAN_FILES is for.  CMake should be capable of cleaning up
after itself though.

-- 
Philip Lowman
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] an easy way to clean cmake generated files?

2008-03-25 Thread Ákos Maróy

Christian Ehrlicher wrote:

http://www.cmake.org/Wiki/CMake_FAQ#CMake_does_not_generate_a_.22make_distclean.22_target._Why.3F

So I doubt such a target could be added without someone crying why his 
generated file did not get cleaned up...


but, you could easily create a 'best-effort' distclean, that:

- cleans up all files generated by CMake directly
- provides hooks for external commands to do the same

thus if the implementer does not use external commands to generate 
files, it works out of the box.


if he does, he has a way of cleaning his files up, by attaching to the 
hooks provided, and cleaning up after himself there.



Akos

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] an easy way to clean cmake generated files?

2008-03-25 Thread Christian Ehrlicher
> Von: "Ákos Maróy"
> Philip Lowman wrote:
> > I've filed a feature request for this (i.e. a "distclean" target for 
> > CMake).  It keeps coming up on the mailing list so it probably would 
> > make a nice addition to CMake.  I've needed it before too when stubborn 
> > coworkers really want to keep using in-source build trees but want to 
> > return their source trees to a pristine state.
> > 
> > http://public.kitware.com/Bug/view.php?id=6647
> 
> thanks, I added a 'me too' comment already :)
http://www.cmake.org/Wiki/CMake_FAQ#CMake_does_not_generate_a_.22make_distclean.22_target._Why.3F

So I doubt such a target could be added without someone crying why his 
generated file did not get cleaned up...

Christian
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] an easy way to clean cmake generated files?

2008-03-24 Thread Ákos Maróy

Philip Lowman wrote:
I've filed a feature request for this (i.e. a "distclean" target for 
CMake).  It keeps coming up on the mailing list so it probably would 
make a nice addition to CMake.  I've needed it before too when stubborn 
coworkers really want to keep using in-source build trees but want to 
return their source trees to a pristine state.


http://public.kitware.com/Bug/view.php?id=6647


thanks, I added a 'me too' comment already :)
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] an easy way to clean cmake generated files?

2008-03-24 Thread Philip Lowman
On Mon, Mar 24, 2008 at 4:51 AM, Ákos Maróy <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I wonder if there's an easy, straightforward way to clean a cmake
> project of _all_ cmake-generated files? This would include:
>
> CMakeCache.txt
> cmake_install.cmake
> CMakeFiles
>
> and all of these in subdirectories added to the project with the
> add_subdirectory() statement..


I've filed a feature request for this (i.e. a "distclean" target for
CMake).  It keeps coming up on the mailing list so it probably would make a
nice addition to CMake.  I've needed it before too when stubborn coworkers
really want to keep using in-source build trees but want to return their
source trees to a pristine state.

http://public.kitware.com/Bug/view.php?id=6647

-- 
Philip Lowman
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] an easy way to clean cmake generated files?

2008-03-24 Thread Mike Jackson

Read this link:

http://www.cmake.org/Wiki/CMake:Eclipse_UNIX_Tutorial

I suggest you use the following project layout:

MyProject
 |--Build  <-- This is where the build will take place.


From a terminal, cd into MyProject/Build
then "cmake ../"
then go back to eclipse and "Refresh" your workspace.
Build your project from within Eclipse. Your binaries and all  
debugging should work just fine.
 When you really need to "clean" everything, then just delete  
everything inside MyProject/Build and rerun cmake.


The link above has more details.

Cheers
--
Mike Jackson   Senior Research Engineer
Innovative Management & Technology Services


On Mar 24, 2008, at 5:23 AM, Ákos Maróy wrote:

Andreas Pakulat wrote:
Use out-of-source builds, then you can just rm -rf builddir and be  
done.


I'd love to, but I want to use Eclipse for the building itself, and  
it seems Eclipse needs in-source builds to be able to do meaningful  
debugging..



For in-source-builds this is going to be manual work.


:(

conceptually I don't understand though. it's cmake that knows best  
what temporary files it is generating..



Akos

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] an easy way to clean cmake generated files?

2008-03-24 Thread Timenkov Yuri
On Monday 24 March 2008 12:23:04 Ákos Maróy wrote:
> Andreas Pakulat wrote:
> > Use out-of-source builds, then you can just rm -rf builddir and be done.
>
> I'd love to, but I want to use Eclipse for the building itself, and it
> seems Eclipse needs in-source builds to be able to do meaningful
> debugging..
I use Eclipse too, but don't experience much problems. I just set up Build 
Directory in project options to place where I set up out-of-source build.
Because debug info is embedded into output binaries, eclipse can easily find 
proper sources (May be after some playing with path mappings). Build 
directory can be specified in extra modules search path.

Alternatively, you may choose to create build directory in source tree to make 
Eclipse find objects and symbols.

>
> > For in-source-builds this is going to be manual work.
> >
> :(
>
> conceptually I don't understand though. it's cmake that knows best what
> temporary files it is generating..
>
>
> Akos
>
> ___
> CMake mailing list
> CMake@cmake.org
> http://www.cmake.org/mailman/listinfo/cmake


___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] an easy way to clean cmake generated files?

2008-03-24 Thread Ákos Maróy

Andreas Pakulat wrote:

Use out-of-source builds, then you can just rm -rf builddir and be done.


I'd love to, but I want to use Eclipse for the building itself, and it 
seems Eclipse needs in-source builds to be able to do meaningful debugging..



For in-source-builds this is going to be manual work.


:(

conceptually I don't understand though. it's cmake that knows best what 
temporary files it is generating..



Akos

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] an easy way to clean cmake generated files?

2008-03-24 Thread Andreas Pakulat
On 24.03.08 09:51:27, Ákos Maróy wrote:
> I wonder if there's an easy, straightforward way to clean a cmake  
> project of _all_ cmake-generated files? This would include:
>
> CMakeCache.txt
> cmake_install.cmake
> CMakeFiles
>
> and all of these in subdirectories added to the project with the  
> add_subdirectory() statement..

Use out-of-source builds, then you can just rm -rf builddir and be done.
For in-source-builds this is going to be manual work.

Andreas

-- 
You may get an opportunity for advancement today.  Watch it!
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake