Re: [CMake] portable way for specifying whether everything or selective libs should be linked statically or as shared objects?

2012-04-03 Thread Bill Hoffman
On 4/2/2012 9:57 PM, Bill Hoffman wrote: Well, you could implement it... :) This is an interesting interface: target_link_libraries(foo STATIC lib1 lib2 SHARED lib3 lib4) I would suggest that you move to the discussion to the cmake-developers list. I had another thought on this. Usually it

Re: [CMake] portable way for specifying whether everything or selective libs should be linked statically or as shared objects?

2012-04-03 Thread Christoph Anton Mitterer
On Mon, 2012-04-02 at 21:57 -0400, Bill Hoffman wrote: Nothing is perfect. :) Yeah :) Hope you didn't feel offended, which wasn't my intention! I was concern about this for a while, Why no longer? however, we have never seen a compiler that did not take -D. :) Well I said this, but I

[CMake] portable way for specifying whether everything or selective libs should be linked statically or as shared objects?

2012-04-02 Thread Christoph Anton Mitterer
Hi. I started to switch over all my build systems to CMake recently and am stuck with the following. I thought of the C in CMake (cross-platform) that it means to that most basic tasks are handled for most platforms/compilers in a transparent way, but this seems all but be the case

Re: [CMake] portable way for specifying whether everything or selective libs should be linked statically or as shared objects?

2012-04-02 Thread Bill Hoffman
On 4/2/2012 9:18 PM, Christoph Anton Mitterer wrote: Hi. I started to switch over all my build systems to CMake recently and am stuck with the following. I thought of the C in CMake (cross-platform) that it means to that most basic tasks are handled for most platforms/compilers in a