[Cmake] make clean, cygwin, foo.exe not removed

Bill Hoffman bill.hoffman at kitware.com
Thu Aug 8 11:00:05 EDT 2002


I don't think this ever worked on cygwin.  That .exe stuff is a pain.
The target that gets built is srp, but the file produced is srp.exe.
That EXECUTABLES has not been used for a while.

-Bill


At 10:41 AM 8/8/2002 -0400, Wheeler, Fred (Research) wrote:
>In cygwin, with makefiles produced by CMake (1.4 release), a "make clean" recursively removes the
>object files and library files, but does not remove the executable files.  The problem is the .exe
>suffix.  You can see the problem in the makefile extracts below.  The TARGETS list includes "srp",
>but it is "srp.exe" that gcc actually produces.  EXECUTABLES is not set in the makefile.  The only
>reference to that variable is seen below.  I do not know whether this ever worked.
>
>Fred Wheeler
>
>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
>TARGETS =  \
>libsrpocs.a \
>srp
>
>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
>#---------------------------------------------------------
># remove generated files
>#
>
>clean: $(SUBDIR_CLEAN)
>        -@ $(RM) $(CLEAN_OBJECT_FILES) $(EXECUTABLES) $(TARGETS) $(GENERATED_QT_FILES)
>$(GENERATED_FLTK_FILES)
>
>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
>--
>Fred Wheeler, GE CRD, KWC-303
>Phone: 518-387-7225 (GE Internal Dialcom: 8*833-7225)
>Fax:   518-387-4042 (GE Internal Dialcom: 8*833-4042)
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake 




More information about the CMake mailing list