[CMake] How to get suffix of shared library file?

Clark J. Wang dearvoid at gmail.com
Wed Jun 13 20:58:07 EDT 2007


Shared libs have different suffixes on different OSes. For example on Linux
the suffix is `.so' and on Mac OS X it's `.dylib'. I want to use `dlopen()'
in my code so I want to get the suffix and then define it in a header file.
Can I do that in CMake? And how?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070614/0ceefebb/attachment.htm


More information about the CMake mailing list