How to use LLVM's libcxx & libcxxabi in cmake project?

别等时光非礼了梦想. 提交于 2019-12-11 17:54:29

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!