FIND_LIBRARY needs to distinguish between shared and static libraries
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
At present, FIND_LIBRARY
has a preference for pickup up shared libraries over static libraries.
How about changing the signature from:
FIND_LIBRARY(<var> NAMES name1 [name2 ...] ....
to
FIND_LIBRARY(<var> SHARED name1 [name2 ...] ....
FIND_LIBRARY(<var> DYNAMIC name1 [name2 ...] ....
The old signature should still be supported (to maintain compatability) and should explicity default to SHARED
mode.