相关疑难解决方法(0)

寻找'cmake clean'命令来清除CMake输出

就像make clean删除makefile生成的所有文件一样,我想对CMake做同样的事情.很多时候,我发现自己在目录删除文件,如手动去cmake_install.cmakeCMakeCache.txtCMakeFiles文件夹.

是否有cmake clean自动删除所有这些文件的命令?理想情况下,这应遵循当前目录CMakeLists.txt文件中定义的递归结构.

cmake

373
推荐指数
13
解决办法
33万
查看次数

如何设置CMAKE_C_COMPILER和CMAKE_CXX_COMPILER来构建适用于iOS的Assimp?

当我尝试通过运行来构建Assimp时build_ios.sh,它告诉我:

CMake Error: your C compiler: "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-g++" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
Run Code Online (Sandbox Code Playgroud)

我需要的道路是:

/Applications/XCode.app/Contents/Developer/Platforms/...
Run Code Online (Sandbox Code Playgroud)

我试着改变DEVROOTbuild_ios.shIPHONE_xxxx_TOOLCHAIN.cmake,因为那是什么CMAKE_C_COMPILER等似乎得到从产生,但它仍然给了我同样的错误.

cmake ios

20
推荐指数
2
解决办法
9万
查看次数

标签 统计

cmake ×2

ios ×1