Closed Sjors closed 4 years ago
I've only used this recently on linux, but I think I can get access to a mac machine to debug today. It seems like cmake on mac (or maybe just the homebrew cmake version) is working a little differently. The capnp_PREFIX variable should be getting set by the find_package(CapnProto)
step.
It's unexpected your "cmake .." output seems to not look for CapnProto at all. Mine looks more like:
$ cmake ..
-- The CXX compiler identification is GNU 7.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost version: 1.65.1
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'capnp'
-- Found capnp, version 0.7.0
-- Checking for module 'capnp-rpc'
-- Found capnp-rpc, version 0.7.0
-- Checking for module 'capnp-json'
-- Found capnp-json, version 0.7.0
-- Checking for module 'kj'
-- Found kj, version 0.7.0
-- Checking for module 'kj-async'
-- Found kj-async, version 0.7.0
-- Checking for module 'kj-http'
-- Found kj-http, version 0.7.0
-- Checking for module 'kj-test'
-- Found kj-test, version 0.7.0
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
...
There may be more clues in generated CMakeCache.txt or include/mp/config.h files. I will try to reproduce this here
On macOS 10.15.3 with cmake version 3.16.4
Shouldn't
cmake ..
have caught this?