I’ve been able to work my way through some problems, but I am now running into one that I don’t know how to solve. Even though CMake is able to locate openssl (libressl, but I tried with openssl too), it’s failing eventually on
CMake Error at flow/CMakeLists.txt:143 (target_link_libraries):
Target "flow" links to:
OpenSSL::SSL
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
I can compile foundationdb locally, outside of nix, just fine. I suspect it’s an interaction between cmake and nix, but I don’t know how to troubleshoot this. Can anyone give me some pointers? I’m afraid I’m not familiar enough with cmake. To be explicit, I am doing this on Apple Silicon, but as I said I can compile locally just fine, so I doubt it’s that.
Thanks! That did solve that specific problem. Now I’m running into a similar one, but this time it’s for boost:
CMake Error at cmake/CompileBoost.cmake:121 (target_link_libraries):
The link interface of target "boost_target" contains:
Boost::context
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Call Stack (most recent call first):
CMakeLists.txt:173 (include)
Since I’ve already added pkg-config to nativeBuildInputs, I’m guessing this is yet another detection failure. I tried setting the options -DBOOST_ROOT=${boost} and -DBoost_USE_STATIC_LIBS=FALSE but to no avail.
This is for both foundationdb 7.0.0 and 7.1.27, who depend on boost172 and boost178 respectively.