Re: [CMake] linking question

2015-04-16 Thread Petr Kmoch
Hi Bill. Probably the easiest way to set the interface properties to just what you need is to use the PUBLIC (which is the default), PRIVATE and INTERFACE keywords when specifying dependencies. In your case, you'd apply them like this: add_library(joe STATIC joe.c joe_a.c) add_library(fred

Re: [CMake] linking question

2015-04-16 Thread Bill Newcomb
This solved the cmake end of this. Thanks! B. On 04/15/2015 11:53 PM, Petr Kmoch wrote: Hi Bill. Probably the easiest way to set the interface properties to just what you need is to use the PUBLIC (which is the default), PRIVATE and INTERFACE keywords when specifying dependencies. In your

[CMake] linking question

2015-04-15 Thread Bill Newcomb
The following is all on Linux (with gcc, gnu binutils, etc). I'm trying to build libfred.so that uses code from libjoe.a, but I want libfred.so to be complete, i.e. I don't want any program that I build that links to libfred.so also need libjoe.a. Then I want to build executable mike that is