[CMake] Subdirectories and FIND_LIBRARY routines

Olaf van der Spek olafvdspek at gmail.com
Mon Jul 26 13:31:26 EDT 2010


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