Re: [CMake] How to add a target link library, but only for a custom configuration ?

2011-05-06 Thread Glenn Coombs
On 6 May 2011 01:12, Michael Hertling mhertl...@online.de wrote: Yes, absolutely. Although setups with libraries which are needed in some configurations only are quite rare, AFAIK, your case shows that this may well happen. ;-) Possible - and more appropriate - solutions could be: - New

Re: [CMake] How to add a target link library, but only for a custom configuration ?

2011-05-05 Thread Glenn Coombs
Thanks for that link Michael. It doesn't please me, but I can confirm that it does work :-) It's a nice hack around a deficiency in cmake. I ended up using this code: # First create a dummy library to hang the pthreads # dependency on via the IMPORTED_LINK_INTERFACE_LIBRARIES property.

Re: [CMake] How to add a target link library, but only for a custom configuration ?

2011-05-05 Thread Michael Hertling
On 05/05/2011 12:51 PM, Glenn Coombs wrote: Thanks for that link Michael. It doesn't please me, but I can confirm that it does work :-) It's a nice hack around a deficiency in cmake. I ended up using this code: # First create a dummy library to hang the pthreads # dependency on via the

[CMake] How to add a target link library, but only for a custom configuration ?

2011-04-26 Thread Glenn Coombs
I am using cmake 2.8.2 and I have added a custom configuration to my project like this: # Add configuration for debug pthreads builds based on the debug configuration # = set(CMAKE_C_FLAGS_DEBUGPTHREADS

Re: [CMake] How to add a target link library, but only for a custom configuration ?

2011-04-26 Thread Michael Hertling
On 04/26/2011 03:40 PM, Glenn Coombs wrote: I am using cmake 2.8.2 and I have added a custom configuration to my project like this: # Add configuration for debug pthreads builds based on the debug configuration #