Subject: Re: [libssh2] #303: CMake build system can't be used as a subproject

Re: [libssh2] #303: CMake build system can't be used as a subproject

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Thu, 21 May 2015 15:41:48 -0000

#303: CMake build system can't be used as a subproject
--------------------------+-------------------
  Reporter: JasonHaslam | Owner:
      Type: defect | Status: new
  Priority: normal | Milestone:
 Component: misc | Version: 1.5.0
Resolution: | Keywords:
Blocked By: | Blocks:
--------------------------+-------------------

Comment (by alamaison):

 Incorporating a project dependency by adding it as a subdirectory is a
 hack. A commonly-used hack, admittedly, but still not a great idea.
 CMake provides better mechanisms such as ExternalProject with a
 superproject build. Or you can use one of the package-managers available
 for CMake (I love [https://github.com/ruslo/hunter Hunter]).

 If you provide a patch that does what you're after, without making the
 CMake files more complex, I see no problem with applying it. But I can't
 promise a future change won't break it.

-- 
Ticket URL: <https://trac.libssh2.org/ticket/303#comment:1>
libssh2 <https://trac.libssh2.org/>
C library for writing portable SSH2 clients
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2015-05-21