Re: [CMake] Sub dependencies?

2011-08-13 Thread Michael Wild
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

Re: [CMake] Fwd: [CMake 0012398]: "IF" infamous functionality fails to work with macro arguments

2011-08-13 Thread Michael Wild
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

Re: [CMake] append command

2011-08-13 Thread Glenn Coombs
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

Re: [CMake] append command

2011-08-13 Thread Michael Wild
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

Re: [CMake] append command

2011-08-13 Thread Glenn Coombs
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

Re: [CMake] append command

2011-08-13 Thread Clifford Yapp
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

Re: [CMake] append command

2011-08-13 Thread Johan Björk
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