[CMake] get_target_property PREFIX and SUFFIX

Vittorio Giovara vittorio.giovara at gmail.com
Tue Jun 11 04:41:09 EDT 2013


Hello,
according to http://www.cmake.org/Bug/view.php?id=5195 it's normal that
PREFIX and SUFFIX are write-only.

However it might be interesting/useful to have such variables so that code
like this
if(BUILD_SHARED_LIBS)
   set(lib_prefix ${CMAKE_SHARED_LIBRARY_PREFIX)
else(BUILD_SHARED_LIBS)
   set(lib_prefix ${CMAKE_STATIC_LIBRARY_PREFIX)
endif(BUILD_SHARED_LIBS)

Would it be appropriate to reopen the bug/file a feature request?
Thanks,
Vittorio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130611/2f2c1108/attachment.htm>


More information about the CMake mailing list