Re: [cmake-developers] Support for imported targets in CMAKE_REQUIRED_LIBRARIES

2012-02-16 Thread Brad King
On 2/16/2012 6:32 AM, Alexander Neundorf wrote: Done, and pushed to stage. I added the prefix cmake_ to the function, and added a test for it. Looks good, thanks. However now that I look at the end result I realize that the functionality is not specific to CMAKE_REQUIRED_LIBRARIES at all. It

Re: [cmake-developers] Support for imported targets in CMAKE_REQUIRED_LIBRARIES

2012-02-16 Thread Alexander Neundorf
On Thursday 16 February 2012, Brad King wrote: On 2/16/2012 6:32 AM, Alexander Neundorf wrote: Done, and pushed to stage. I added the prefix cmake_ to the function, and added a test for it. Looks good, thanks. However now that I look at the end result I realize that the functionality

Re: [cmake-developers] Support for imported targets in CMAKE_REQUIRED_LIBRARIES

2012-01-21 Thread Alexander Neundorf
On Friday 20 January 2012, Brad King wrote: On 1/19/2012 11:49 AM, Alexander Neundorf wrote: On Thursday 19 January 2012, Brad King wrote: I think a full solution to this will end up duplicating a lot of the logic that CMake already has in its C++ code for link dependency analysis. I

Re: [cmake-developers] Support for imported targets in CMAKE_REQUIRED_LIBRARIES

2012-01-20 Thread Brad King
On 1/19/2012 11:49 AM, Alexander Neundorf wrote: On Thursday 19 January 2012, Brad King wrote: I think a full solution to this will end up duplicating a lot of the logic that CMake already has in its C++ code for link dependency analysis. I wonder if instead you could modify the signature of

Re: [cmake-developers] Support for imported targets in CMAKE_REQUIRED_LIBRARIES

2012-01-19 Thread Brad King
On 1/18/2012 4:24 PM, Alexander Neundorf wrote: On Wednesday 18 January 2012, Alexander Neundorf wrote: Hi, the variable CMAKE_REQUIRED_LIBRARIES is used by several of the check-modules for listing additional libraries which should be linked. It is common to use variables set by Find-modules

[cmake-developers] Support for imported targets in CMAKE_REQUIRED_LIBRARIES

2012-01-18 Thread Alexander Neundorf
Hi, the variable CMAKE_REQUIRED_LIBRARIES is used by several of the check-modules for listing additional libraries which should be linked. It is common to use variables set by Find-modules for this, e.g. set(CMAKE_REQUIRED_LIBRARIES ${JPEG_LIBRARIES} ) Now, if the module did not simply set

Re: [cmake-developers] Support for imported targets in CMAKE_REQUIRED_LIBRARIES

2012-01-18 Thread Rolf Eike Beer
Alexander Neundorf wrote: On Wednesday 18 January 2012, Alexander Neundorf wrote: Hi, the variable CMAKE_REQUIRED_LIBRARIES is used by several of the check-modules for listing additional libraries which should be linked. It is common to use variables set by Find-modules for this, e.g.