Re: [CMake] packaging configuration files

2009-11-11 Thread Brad King
James C. Sutherland wrote: Thanks. To be clear, it only works if I use set( ExprLib_LIBRARIES @TPL_LIBRARIES@ ) because otherwise I have no way of propagating the dependents of ExprLib downstream. It is true that CMake will add the ExprLib library as a target that can be used

Re: [CMake] packaging configuration files

2009-11-11 Thread James C. Sutherland
On Nov 11, 2009, at 9:05 AM, Brad King wrote: James C. Sutherland wrote: Thanks. To be clear, it only works if I use set( ExprLib_LIBRARIES @TPL_LIBRARIES@ ) because otherwise I have no way of propagating the dependents of ExprLib downstream. It is true that CMake will add the

Re: [CMake] packaging configuration files

2009-11-10 Thread Brad King
James C. Sutherland wrote: The library I am building pulls in several other libraries (MPI, BLAS, Boost, etc). I would like any down-stream apps that use my library to automatically be able to include any appropriate header files and link to appropriate third-party libraries that were

Re: [CMake] packaging configuration files

2009-11-10 Thread James C. Sutherland
Brad, thanks for the feedback. See comments below. On Nov 10, 2009, at 11:30 AM, Brad King wrote: James C. Sutherland wrote: The library I am building pulls in several other libraries (MPI, BLAS, Boost, etc). I would like any down-stream apps that use my library to automatically be able

Re: [CMake] packaging configuration files

2009-11-09 Thread Brad King
James C. Sutherland wrote: However, I just discovered that this is a deprecated feature, and that install(EXPORT...) should be used instead. Good, it is much more modern and more powerful. However, it is not clear to me how to incorporate dependencies when using the install(EXPORT)

Re: [CMake] packaging configuration files

2009-11-09 Thread James C. Sutherland
On Nov 9, 2009, at 12:00 PM, Brad King wrote: James C. Sutherland wrote: However, I just discovered that this is a deprecated feature, and that install(EXPORT...) should be used instead. Good, it is much more modern and more powerful. However, it is not clear to me how to incorporate

[CMake] packaging configuration files

2009-11-07 Thread James C. Sutherland
I have been using export_library_dependencies() to incorporate library dependencies when generating configuration files for use with find_package() However, I just discovered that this is a deprecated feature, and that install(EXPORT...) should be used instead. However, it is

Re: [CMake] packaging configuration files

2009-11-07 Thread James C. Sutherland
On Nov 7, 2009, at 11:59 AM, James C. Sutherland wrote: I have been using export_library_dependencies() to incorporate library dependencies when generating configuration files for use with find_package() However, I just discovered that this is a deprecated feature, and that