Brad King wrote:

IF(BUILD_EXAMPLES)


Why do you have a definition for BUILD_EXAMPLES in the top-level config.h? Building the libs certainly shouldn't care whether examples will be built. If a few of the sources do need to know for some reason just create a different configured header for BUILD_EXAMPLES and include it in only the sources that need it.


Brad,
you are totally right.
dropping the BUILD_EXAMPLES from toplevel config.h solved it.


ADD_DEPENDENCIES(libs lib1 lib2)

This works, great!


For the records:
I tried adding a target and dependencies with

ADD_CUSTOM_TARGET(lib DEPENDS lib1 lib2  )

which did *not* work with cmake 2.0.6. But

ADD_TARGET(lib)
ADD_DEPENDENCIES(lib lib1 lib2)

works as expected.


Thanks a lot,
Jan.

--

 Dipl.-Ing. Jan Woetzel
--------------------------------------------------
 Uni Kiel
 Institut f. Informatik und Praktische Mathematik
 Hermann-Rodewaldstr. 3  [Raum 310]
 24098 Kiel/Germany
--------------------------------------------------
 Tel    +49-431-880-4477
 Fax    +49-431-880-4054
 Privat +49-431-802872
 Mob.   +49-179-2937346
--------------------------------------------------
 Url    www.mip.informatik.uni-kiel.de/~jw
 Email  [EMAIL PROTECTED]
 Privat [EMAIL PROTECTED]

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to