[CMake] CMake - overriding shared linker flags

Hendrik Sattler post at hendrik-sattler.de
Wed Jun 23 07:53:06 EDT 2010


Zitat von K Lakshman <maruthilakshman-cmake at yahoo.com>:
> I might have used the term incorrectly. The context is that I am   
> trying to build
> a shared library which, on running by its own will print the version  
>  info ie.,
> the name of the shared library will be libmylib.so which can be used to link
> with and build other executables. But when run as a command libmylib.so will
> print some information. Whether you call this an executable or a   
> shared object
> is immaterial. For instance, /lib/libc.so.6 behaves in a similar   
> way. I was just
> trying to mimic that behavior in my library.

Ever wondered why no library does this except GNU libc?

Just don't. Really.

HS




More information about the CMake mailing list