[CMake] How to get suffix of shared library file?
Brandon Van Every
bvanevery at gmail.com
Thu Jun 14 15:14:41 EDT 2007
On 6/13/07, Clark J. Wang <dearvoid at gmail.com> wrote:
>
> I've tried GET_TARGET_PROPERTY but it does not work. The SUFFIX property
> returns NOTFOUND unless we explicitly set it by calling
> SET_TARGET_PROPERTIES.
I'd call that a bug. Would you be so kind as to file it in the bug tracker?
http://www.cmake.org/Bug
I looked in the script where a lot of the CMake Useful Variables come from.
http://www.cmake.org/Wiki/CMake_Useful_Variables/Get_Variables_From_CMake_Dashboards
I found:
CMAKE_EXECUTABLE_SUFFIX
CMAKE_FIND_LIBRARY_PREFIXES
CMAKE_FIND_LIBRARY_SUFFIXES
CMAKE_IMPORT_LIBRARY_PREFIX
CMAKE_IMPORT_LIBRARY_SUFFIX
CMAKE_LINK_LIBRARY_SUFFIX
CMAKE_SHARED_LIBRARY_PREFIX
CMAKE_SHARED_LIBRARY_SUFFIX
CMAKE_SHARED_MODULE_PREFIX
CMAKE_SHARED_MODULE_SUFFIX
CMAKE_STATIC_LIBRARY_PREFIX
CMAKE_STATIC_LIBRARY_SUFFIX
I will throw these up on the wiki and document them to the best of my
understanding. I think CMAKE_SHARED_LIBRARY_SUFFIX does what you
want.
Cheers,
Brandon Van Every
More information about the CMake
mailing list