• Branislav Katreniak's avatar
    cmake/macros: use in-build capnp tools if capnroto is built in cmake · 71f1fa97
    Branislav Katreniak authored
    If CapnProto is part of cmake build, macro CAPNP_GENERATE_CPP
    uses in-build capnp tools.
    
    This change fixes `make check` target with cmake.
    
    All tests pass except
    1: [ FAIL ] exception-test.c++:30: legacy test:
        Exception/TrimSourceFilename
    1: /home/brano/src/capnproto/c++/src/kj/exception-test.c++:31:
        failed: expected (trimSourceFilename(
        "/home/brano/src/capnproto/c++/src/kj/exception-test.c++"))
        == ("kj/exception-test.c++");
    
    Not sure how to fix the test without disabling it.
    71f1fa97
CMakeLists.txt 6.79 KB