Re: [CMake] Question about transitive deps and static libs.

2017-04-18 Thread Petr Kmoch
Hi, I will offer an alternative phrasing based on what makes me personally understand this best. It might potentially be useful for the documentation update you're planning. `target_link_libraries(A B)` specifies that the code in A needs B to be added to the produced binary when the binary is *li

[CMake] Need code review of my android toolchain file

2017-04-18 Thread Robert Dailey
I'm trying to follow best practices where I can, but the trouble is I'm not aware of any. So I want to post my android.toolchain.cmake file here, with the hope that I can get some pointers. The main thing I want to understand is when it is appropriate to require cache variables be set via command

Re: [CMake] Predownload

2017-04-18 Thread Craig Scott
On Tue, Apr 18, 2017 at 3:24 PM, Zabel, Oliver wrote: > Hi, thanks a lot for your input. I will take a look at the SuperProject > (with ExternalProject_Add() call) constellation as well as the meta build > tools. I'm quite new to this stuff, so please allow me my question: does > this even make

[CMake] How does one create a nonfatal error in cmake_install.cmake?

2017-04-18 Thread R. Sage
Under CMake 2.8.7, I am trying to produce an install error similarly to how I would use SEND_ERROR in a normal CMakeLIsts.txt and I successfully insert message(SEND_ERROR...) into the cmake_install.cmake and it produces a message, but unfortunately upon hitting the message(SEND_ERROR ...), it stops

Re: [CMake] Packaging issues

2017-04-18 Thread Volker Enderlein
Hello Konstantin, Thanks again for your excellent support and your continuous development of the CPack IFW module. Cheers, Volker Am 18.04.2017 um 18:52 schrieb Konstantin Podsvirov: The CPackIFW module learned the new hint CPACK_IFW_ROOT variable for finding the QtIFW tool suite installed

Re: [CMake] Packaging issues

2017-04-18 Thread Konstantin Podsvirov
The CPackIFW module learned the new hint CPACK_IFW_ROOT variable for finding the QtIFW tool suite installed in a non-standard place. https://cmake.org/cmake/help/git-master/module/CPackIFW.html#variable:CPACK_IFW_ROOT This feature available in 'master' branch and will be released with CMake 3.9.

Re: [CMake] Question about transitive deps and static libs.

2017-04-18 Thread Eric Noulard
Answering to myself. This mail by Craig explains a lot: https://cmake.org/pipermail/cmake/2016-May/063400.html Sorry for the noise. I guess I have my answer in there. I'll try to propose a documentation update based on Craig's explanation because, https://cmake.org/cmake/help/v3.8/manual/cmake-bu

[CMake] Question about transitive deps and static libs.

2017-04-18 Thread Eric Noulard
I have a question concerning the transitive linking of dependence and static libs. I'm working a on prokect where some shared lib are linked to static lib (do not ask me why). So I do: set(CMAKE_POSITION_INDEPENDENT_CODE True) then I have a bunch of libraries (either static or shared) which depe