问题
Currently I'm running Debian stretch with the system's default compiler GCC 6.3.0. But I have a project using cmake (ceph's master branch) that depends on C++17, which requires non default includes and libraries. So I decided to use Clang/LLVM to build it. I downloaded and installed Clang/LLVM, compiled it and installed it below /usr/local
.
Now my question is, how to instruct cmake to use the includes from /usr/local/include/c++/v1/
and the libraries from /usr/local/lib
?
来源:https://stackoverflow.com/questions/49470629/how-to-use-llvms-libcxx-libcxxabi-in-cmake-project