Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cmake + xcode : error 'Build setting PRODUCT_NAME undefined'

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 ?

like image 275
rotoglup Avatar asked Nov 06 '11 17:11

rotoglup


1 Answers

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.

like image 72
fghj Avatar answered Oct 20 '22 08:10

fghj