是否可以使用不同的C++ CMAKE中不同目标的标准?
假设一个带有两个目标liba和libcuda的cmake文件。此外,还有一个外部图书馆libext,应与liba联系起来。 libext是一个仅标题库,需要C ++ 20支持。 libcuda具有源.cu
文件,而最新的NVCC编译器只能支持C ++ 17。 是否可以使用单个cmakelist.txt文件与C ++ 20支持,具有C ++ 17支持的Libcuda编译LIBA,最后将两个链接在一起?
Suppose a CMake file with two targets libA and libCUDA. Moreover, there is an external library libExt, which shall be linked against libA. libExt is a header-only library and requires C++20 support. libCUDA has source .cu
files and the most recent nvcc compilers does only suppport C++17.
Is it possible to use a single CMakeList.txt file to compile libA with C++20 support, libCUDA with C++17 support and finally link both together?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论