[CMake] subdirs and depenency handling
Alexander Neundorf
a.neundorf-work at gmx.net
Tue May 10 12:06:26 EDT 2005
You wrote:
...
> If you are getting this message because the executable is added in the
> parent of the directory where the library is added then this can be
> fixed now when using the CVS version of CMake. Look at the
> ADD_SUBDIRECTORY command. It lets you do in-order subdirectories
> instead of post-order and should resolve this problem.
With ADD_SUBDIRECTORY my CMakeLists.txt now looks like this:
ADD_SUBDIRECTORY(profileengine PREORDER)
ADD_SUBDIRECTORY(newui PREORDER)
SUBDIRS( profiles)
Sorry, but IMHO this doesn't look like cmake, this looks like a hack. I
tried
SUBDIRS(profiles PREORDER newui profileengine)
but this didn't have the desired effect.
Also the documentation for ADD_SUBDIRECTORY sounds quite complicated. Why
are different source dir and binary dir needed ? Couldn't the same effect
be realized with the PREORDER keyword for SUBDIRS() ?
I will stay with the extra build-subdirectory for now.
Bye
Alex
--
+++ Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS +++
GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail
More information about the CMake
mailing list