building swift library out of cmake project - how to set the autogenerated bridging header location.

Hi, I’m building swift based library from cmake project and I’d like to control the location of the objective-c generated interface header name.

This file is autogenerated and ends with -Swift.h header to be included in objc file.

currently the default location is:


but it seem to change according to Xcode version, so I’d like to have it on a predefined location.

Alternatively, I can also export the relevant Xcode environment variable $(DERIVED_FILE_DIR) to be used by the cmake project. This variable represent the location of the bridging header file. Is it doable ?
Thanks !

This would likely need a new target property to handle. Or an Xcode property/attribute (which may be accessible via XCODE_ATTRIBUTE_* properties).