Re: WIP: About CMake v2
От | Greg Stark |
---|---|
Тема | Re: WIP: About CMake v2 |
Дата | |
Msg-id | CAM-w4HMAS+NVp_t20Ma-JtDod7gHvHJKCHE5Tf+Kixv_inEK7w@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: WIP: About CMake v2 (Robert Haas <robertmhaas@gmail.com>) |
Ответы |
Re: WIP: About CMake v2
|
Список | pgsql-hackers |
On Tue, Sep 1, 2015 at 2:41 PM, Robert Haas <robertmhaas@gmail.com> wrote: > Maybe we should merge all of the makefiles for subdirectories of > src/backend into a single makefile. The major disadvantage would be > that you couldn't rebuild a subdirectory any more by typing make -C > src/backend/executor or whatever. And I do do that sometimes, so > maybe it would be annoying, but presumably it would make the > dependency issues a lot easier to deal with. Actually I think it's possible to cater to that use case though I've never tried. What I think does become difficult in this scenario are directories that are built more than once, eg, for client and server side builds. I guess you could still do it but it would require doubling up every rule and creating lots of extra targets representing the two builds since you can't just call make with different variables. It is tempting and I've been wanting to evalangize this approach ever since read http://aegis.sourceforge.net/auug97.pdf but I've never actually had practical experience with it and iirc it's always this scenario of wanting to compile submodules multiple times that blocked using it. -- greg
В списке pgsql-hackers по дате отправления: