cmake - Why does Xcode inside my bundle packages shows full path to the executable instead of the product name? - Stack Overflow

admin2025-04-16  3

I have prepared a CMakeLists.txt file to create a macOS bundle to be used as a plugin within another program. Everything is working beautifully. But there is one cosmetic annoyance.

The product name as shown in the Products group is the full path to the executable inside the package, instead of just the name of the package: 2D Velocity.izzyplug/Contents/MacOS/2D Velocity instead of just 2D Velocity.izzyplug as I would expect.

Could this be because there are spaces in the name of the plugin? Or maybe because of the custom extension .izzyplug instead of .bundle? Or is this some kind of known bug?

I mean, it's not dysfunctional, just grating on me every time I look at it because of my inherent programmer perfectionism. ;-)

转载请注明原文地址:http://www.anycun.com/QandA/1744754705a87146.html