#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):

 The important thing with ExternalProject is that you can't just use it in
 your project's CMakeLists.txt because it doesn't fetch and build the
 subprojects until main project build time - too late for find_package,
 which runs at configure time, to pick them up. You have to make a wrapper
 project that uses ExternalProject to build the dependencies and also uses
 ExternalProject to build your project. This setup is called a CMake
 Superbuild or superproject.

 Hunter avoids the need for a superbuild but building the dependency
 projects at main project configure time.

 Thanks for the patch. I'll try and test it tonight

-- 
Ticket URL: <https://trac.libssh2.org/ticket/303#comment:3>
libssh2 <https://trac.libssh2.org/>
C library for writing portable SSH2 clients

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to