1. 21 Dec, 2017 2 commits
    • Harris Hancock's avatar
      cmake: Remove FindCapnProto.cmake · 6b788321
      Harris Hancock authored
      This file is obsoleted by the CMake config package files that the autotools build now installs. Since FindCapnProto.cmake contains an implementation of capnp_generate_cpp(), in which I just fixed a bug, this file seems like a maintenance liability  now, so I'd like to delete it.
      6b788321
    • Harris Hancock's avatar
      cmake: capnp_generate_cpp() should import src-prefix · cb482fe3
      Harris Hancock authored
      capnp_generate_cpp() needs to import two directories by default: the src-prefix directory which houses the .capnp files being compiled (under their canonical paths), and the capnp include directory which houses capnp/rpc.capnp, capnp/schema.capnp, etc. (This latter path will necessarily be different for build-tree usage versus install-tree usage.) Before this commit, instead of importing the src-prefix, we were importing CMAKE_CURRENT_SOURCE_DIR.
      
      Note that for capnproto's own compilation of test.capnp and friends, the src-prefix and capnp include directory will end up being the exact same directory. It turns out to be surprisingly difficult to de-duplicate them, however, because the capnp include directory is actually a CMake generator expression in order to deal with the build-tree versus install-tree issue mentioned above. So, for now, we pass two -I flags to the same directory.
      
      Alongside the fix in capnp_generate_cpp(), I fixed the usage of it in c++/src/capnp/CMakeLists.txt by setting CAPNPC_SRC_PREFIX correctly and removing the /capnp suffix hack from CAPNPC_OUTPUT_DIR.
      cb482fe3
  2. 20 Dec, 2017 5 commits
  3. 19 Dec, 2017 2 commits
  4. 14 Dec, 2017 6 commits
  5. 13 Dec, 2017 1 commit
    • Kenton Varda's avatar
      Add support for Own<void>. · 5f2172c6
      Kenton Varda authored
      Any Own<T> can be converted to Own<void> (or Own<const void>). The main purpose of this is to give someone a way to invoke an object's disposer without them having to know anything about the type.
      5f2172c6
  6. 11 Dec, 2017 24 commits