[CMake] object file target

Andreas Pakulat apaku at gmx.de
Mon Jul 30 17:41:08 EDT 2007


On 30.07.07 16:39:04, Juan Sanchez wrote:
> > 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?
 
make VERBOSE=1

Andreas

-- 
Is this really happening?


More information about the CMake mailing list