Re: [CMake] Single library with both shared and static binaries

2019-09-26 Thread Simon Richter
Hi, On Tue, Sep 24, 2019 at 11:41:54PM +0300, Avraham Shukron wrote: > I have a library which I want to distribute in both shared object and > static library forms. Is that a requirement for your project, or a requirement for the system integrator? With my Debian Developer hat on, I'm always gr

Re: [CMake] Difference between PRIVATE and PUBLIC with target_link_libraries

2019-09-18 Thread Simon Richter
Hi, On Tue, Sep 17, 2019 at 04:21:36PM -0700, Alan W. Irwin wrote: > * It appears to me that if a CMake-based build system is configured > properly there is very little need for the PUBLIC option for TLL > because PRIVATE works well for shared libraries and the > PRIVATE-becomes-PUBLIC beha

Re: [CMake] How can I automatically optionally build a submodule?

2019-03-12 Thread Simon Richter
Hi, On 12.03.19 06:37, Steve Keller wrote: > How can I build a module in a subdirectory automatically if a required > package is available, but not fail if it's not. Say I have a > top-level CMakeLists.txt with With my Debian Developer hat on: please also add a mechanism to manually specify whet

Re: [CMake] dependencies on system include files

2018-12-17 Thread Simon Richter
Hi Kris, On 17.12.18 01:24, Kris Thielemans wrote: > Checking a bit more carefully it appears that the system .h files are > not included in depend.make. I guess this is done to save some time > checking all those dependencies as system files are supposed to be > relatively stable, but if they’re

Re: [CMake] Finding Boost (1.69.0)?

2018-12-15 Thread Simon Richter
Hi, On 15.12.18 18:48, Osman Zakir wrote: > Would the way for finding Boost that I saw before when I asked about > doing it for version 1.68.0 also work for version 1.69.0? Some versions of FindBoost.cmake only check a fixed list of versions. You can extend this list by passing in e.g. -DBo

Re: [CMake] How force cmake debug/release

2018-12-07 Thread Simon Richter
Hi, On 06.12.18 09:50, Andy wrote: > If I call "cmake ." it write: "Warning:Debug" > Debug is default and I must call "cmake . -DCMAKE_BUILD_TYPE=Release" > for release? That depends on the generator used. Some generators require the build type at configuration time, some at build time. For exam