On Thu, 2014-01-23 at 11:40 -0500, Brad King wrote: > On 01/23/2014 11:36 AM, Paul Smith wrote: > > I see. That's a shame :-(. > > Unfortunately it is an Xcode limitation that CMake cannot work around. > > > Kind of unpleasant. Anyone have any ideas? > > Add an "empty.c" source protected by if(XCODE).
Yeah, I thought about that. Tested it here and it worked. OK, I can manage that. Plus it gives me a handy place to put a snarky comment about Xcode :-p :-) > Also be sure to set the POSITION_INDEPENDENT_CODE target property > on the object libraries to make sure the objects can be used in > a shared library. I've been adding -fPIC by hand but this property looks nicer; I'll check it out. Thanks Brad! -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
