Re: [CMake] Getting the path to object files?

2019-02-27 Thread Robert Maynard via CMake
You can file an enhancement request that the $ generator expression to be relaxed to include STATIC, SHARED, and MODULE libraries. My suggestion is that a dummy source file to workaround the Xcode limitation on targets, is not as hacky as reverse engineering the object file locations. On Wed, Fe

Re: [CMake] Getting the path to object files?

2019-02-27 Thread Paul Smith
On Wed, 2019-02-27 at 08:39 -0500, Robert Maynard wrote: > CMake only provides an official way to get the location of the object > files for OBJECT targets ( $ ). For other > target types the location is an implementation detail. Yes, but sometimes (as in my case) I need to know it :). I need to

Re: [CMake] Getting the path to object files?

2019-02-27 Thread Robert Maynard via CMake
CMake only provides an official way to get the location of the object files for OBJECT targets ( $ ). For other target types the location is an implementation detail. On Sat, Feb 23, 2019 at 3:24 PM Paul Smith wrote: > > Hi all. I'm using CMake 3.13.4 across Linux, MacOS, and Windows, with > var

[CMake] Getting the path to object files?

2019-02-23 Thread Paul Smith
Hi all. I'm using CMake 3.13.4 across Linux, MacOS, and Windows, with various generators. I need to write a script (this only runs on Linux actually) that will do some processing on all the object files in a shared library and generate a linker version file. I'm trying to write a custom command