CMake unable to determine linker language with C++
CMake unable to determine linker language with C++方案一源文件使用了自定义的扩展名,导致cmake无法正确识别该源文件对应的语言类型。此时,可以通过将源文件扩展名修改为常用的c++扩展名解决,如.cpp,.cc等。方案二通过再CMakeList.txt中显示指定语言类型来解决:project(hello LANGUAGES CXX CUDA VERSION 1.1)或:set_target_properties(hello PROPERTIE