I just wrote my own macro append_property(type name value) for this.
example:
append_property(SOURCE COMPILE_FLAGS "-x objective-c++"
translate.cpp stuff.cpp)
or
append_property(TARGET COMPILE_FLAGS "foo" mytarget)
etc
Would be nice to have that as an included macro, or at least a comment in
the d
On Sat, Aug 13, 2011 at 5:14 AM, Glenn Coombs wrote:
> I haven't seen any discussion yet of my 2nd alternative of getting cmake to
> automatically convert lists to space separated strings for certain variables
> like CMAKE_EXE_LINKER_FLAGS_RELEASE. If cmake did this then there would be
> less ne
Which is precisely the sort of thing that started this whole discussion :-)
In the same way that C/C++ would still work without the += operator it does
allow a wonderful conciseness that I miss on occasion. Especially given
cmake's propensity for verbose variable names.
On 13 August 2011 10:22, M
On Sat 13 Aug 2011 11:14:52 AM CEST, Glenn Coombs wrote:
> Out of all the suggestions so far I'd like to say that my preferred
> solution is Michael's one of:
>
> SET( ... CONCAT [SEP ])
>
> I haven't seen any discussion yet of my 2nd alternative of getting cmake
> to automatically convert l
Out of all the suggestions so far I'd like to say that my preferred solution
is Michael's one of:
SET( ... CONCAT [SEP ])
I haven't seen any discussion yet of my 2nd alternative of getting cmake to
automatically convert lists to space separated strings for certain variables
like CMAKE_EXE_LI
For most users, macros should be a taboo anyways. They are much better
served by functions, IMHO. In all of my projects I had only one case
where I actually needed a macro. That was when I wrapped a function
that set some variables in the PARENT_SCOPE and I had to propagate them
outside of the
On Sat 13 Aug 2011 03:55:06 AM CEST, Doug wrote:
> I see.
>
> I've tried this approach and I get the error:
> -- Found LIBPNG
> CMake Error at CMakeLists.txt:49 (export):
> export given target "/usr/lib/libpng.so" which is not built by this
> project.
>
>
> -- Configuring incomplete, errors