Modular building of kde modules

Ingo Klöcker kloecker at kde.org
Wed Mar 18 19:52:35 GMT 2009


On Wednesday 18 March 2009, Parker Coates wrote:
> On Tue, Mar 17, 2009 at 20:03, Matthew Woehlke wrote:
> > Parker Coates wrote:
> >> I've often wished CMake had a construct equivalent to Python's "if
> >> __name__ == '__main__' :" that would let you run certain code only
> >> if the current file was being run as the "top level"
> >> CMakeLists.txt.
> >
> > You mean like this?
> > if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
>
> Okay, so we've determined that I /can/. The next question is whether
> I /should/.
>
> Is this a good idea? Will people reading it actually understand what
> I'm trying to do? 

If in doubt add a comment.


Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090318/c1911465/attachment.sig>
-------------- next part --------------
_______________________________________________
Kde-buildsystem mailing list
Kde-buildsystem at kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


More information about the kde-core-devel mailing list