[CMake] object file target

Hendrik Sattler post at hendrik-sattler.de
Mon Jul 30 17:45:11 EDT 2007


Am Montag 30 Juli 2007 23:39 schrieb Juan Sanchez:
> > Did you try to make it straight-forward without any tweaking around?:
> > add_library (staticarchivex STATIC ...)
> > add_library (staticarchivey STATIC ...)
> > add_library (sharedlibrary SHARED obj1.c obj2.c obj3.c)
> > target_link_libraries(sharedlibrary staticarchivex staticarchivey)
> >
> >
> > Any reason why that shouldn't work?
>
> It might not work if the target was never intended to be a library.
> Unfortunately the documentation wasn't clear on this.  I'll try it out.
>
> Is there an easy way to tell cmake not to hide the commands it's
> invoking when I type make?

Use "make VERBOSE=1"

HS


More information about the CMake mailing list