[CMake] CMake + UIC files -- Is this a bug with CMake or with me?

Andreas Pakulat apaku at gmx.de
Tue Jul 20 17:30:47 EDT 2010


On 20.07.10 16:18:26, kent williams wrote:
> OK, so set_source_file_properties needs a property value that's a
> single string.  This wasn't clear from the documentation at all or not
> clear to me at least. Thanks for your help!

It doesn't need to be explicit if you've understood cmake variables (yes
thats not exactly and easy and straight-forward topic). The problem is
that when you have multiple values in a varialy "xyz" and you pass it as
${xyz} to the function, it'll get expanded and as
set_source_files_properties allows multiple properties to be set it
takes the second (third, fourth etc.) element of the list you've passed
in as next property name instead of value to the first property. Using
the quotes you make sure that cmake understands that all individual
elements from the list belong to the same "value" position in the call
to the set-function.

Andreas

-- 
You are going to have a new love affair.


More information about the CMake mailing list