Cmake + xcode: error 'Customizing the PRODUCT_NAME undefined assembly'

I use cmake 2.8.3 to create a C / C ++ project file for xcode 3.2.5; the assembly is generally fine, but I have to manually set the "Product Name" every time I create an xcode project (in Project / Edit Project Settings / Packaging).

If I cannot set this product name, xcode refuses to build the project and exits with the following error message:

  • Build setting PRODUCT_NAME undefined

Is it possible to set this value with cmake? or go without specifying a product name?

+8
c ++ c build xcode cmake
source share
1 answer

Have you tried something like this?

  set_target_properties(your_target PROPERTIES XCODE_ATTRIBUTE_PRODUCT_NAME "aaa") 

I replaced Mac OS X with Linux on my MacBook, so I can’t verify this suggestion.

+2
source share

All Articles