On Monday 14 January 2008 04:04, Bill Hoffman wrote:
> Brandon Van Every wrote:
> > On Jan 13, 2008 4:23 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote:
> >> Martin Lütken wrote:
> >>> That's great then. Do you know who to address in order to get the patch
> >>> into the CVS code ?
> >>
> >> Actually, what about something like this:
> >>
> >> # CMakeLists.txt
> >> INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/${CML_NAME}")
> >>
> >> cmake /path/to/proj -DCML_NAME:STRING="mycmake1.txt"
> >> cmake /path/to/proj -DCML_NAME:STRING="mycmake2.txt"
> >>
> >>
> >> No changes needed to CMake at all....
> >
> > "Not needing to change CMake" may be useful for my own purposes, as I
> > have to ship with production versions of CMake, and I was planning to
> > wrap command line ugliness in a script anyways.  But CMake is changed
> > all the time in order to better it.  I don't see how "let's leave well
> > enough alone" is an argument in this case.  In terms of command line
> > elegance, your solution leaves much to be desired over
> >
> > cmake -f mycmake1.txt
> > cmake -f mycmake2.txt
> >
> > Especially in the eyes of the Autoconf + GMake crowd, whom we'd like
> > to convert.  Do you have a serious objection to CMake having a -f
> > flag?
>
> There is already a way to do the same thing. Martin, perhaps if you
> discussed the use case better so we could understand what you are trying
> to do.   Many people will run CMake from a GUI and will not be giving a
> -f flag.  With the patch there would be no way to build a project via
> one of the GUI's if it required changing the name of the file.  If you
> had two or more sets of cmake files in the same source tree, how would
> that work?
>
> -Bill

My patch would work fine with two sets of makefiles.
And can't see why you could nor set that option from the GUI also
Before generating the makefiles.
I need it since I am trying to make a sort of "Common Build System" using 
CMake as make generator.
The idea is to have a simple uniform way of building existing opensource SW.
I know CMake allready goes a long way in this goal, but I want to go further 
by providing uniform CBS/CMake files for often used SW projects. Also I want 
it to be easy to create new buildfiles which works with the system so 
hopefully
the project owners would keep them updated by themselves.

Some projects might have their own CMake files allready (like KDE) and I am 
not interrested in intefering with these - at least not at first.

-Martin





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

Reply via email to