I'm using cmake 2.8.3 to generate a C/C++ project file for xcode 3.2.5 ; the build goes generally fine, but I have to manually set the "Product Name" each time I generate the xcode project (in Project / Edit Project Settings / Packaging).
If I fail to set this product name, xcode refuses to build the project, and exits reporting the following error :
Build setting PRODUCT_NAME undefined
Is it possible to set this value with cmake ? or go without defining a Product Name ?
Have do you tried something like this?
set_target_properties(your_target PROPERTIES XCODE_ATTRIBUTE_PRODUCT_NAME "aaa")
I've replaced Mac OS X with Linux on my MacBook, so I can't check this suggestion.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With