[CMake] Subdirectories and FIND_LIBRARY routines

Clifford Yapp cliffyapp at gmail.com
Mon Jul 26 13:41:30 EDT 2010


Olaf,

zlib is just an example.  I'm working on building BRL-CAD, which has a
number of such libs, some of them not common at all.  Also, the
project policy is to have the libs in src/other available for local
compile at need, so that part of it isn't up to me :-/.

CY

On Mon, Jul 26, 2010 at 1:31 PM, Olaf van der Spek <olafvdspek at gmail.com> wrote:
> On Mon, Jul 26, 2010 at 7:28 PM, Michael Wild <themiwi at gmail.com> wrote:
>> The build_thirdparty macro calls itself other macros, e.g. build_zlib. That one "guesses" the output location of the zlib libraries, creates an IMPORTED library target and sets XXX_LIBRARIES accordingly.
>>
>> The problem of finding the output location of external projects has been discussed quite a few times, and there is only one really clean, although complex and confusing solution: There is one "master" project which only makes calls to ExternalProject_Add, even the main project is build as such an external project.
>
> Isn't the solution to use system libs for zlib?
> Building zlib 'privately' seems like a bad work around.
>
> Olaf
>


More information about the CMake mailing list