[CMake] Object Library into Shared library

j s j.s4403 at gmail.com
Wed Sep 24 00:04:23 EDT 2014


Hello,

According to:
http://www.cmake.org/Wiki/CMake/Tutorials/Object_Library

it is possible to compile OBJECT libraries for use in other targets, as 
of CMake 2.8.8.  Unfortunately it doesn't document how to make the 
OBJECT position independent.  Is the proper cross platform method to set 
the POSITION_INDEPENDENT_CODE property ON on the OBJECT library?  What 
is the minimum version required to set the POSITION_INDEPENDENT_CODE 
property on an OBJECT library.

Thanks,



More information about the CMake mailing list