就像make clean删除makefile生成的所有文件一样,我想对CMake做同样的事情.很多时候,我发现自己在目录删除文件,如手动去cmake_install.cmake和CMakeCache.txt和CMakeFiles文件夹.
是否有cmake clean自动删除所有这些文件的命令?理想情况下,这应遵循当前目录CMakeLists.txt文件中定义的递归结构.
当我尝试通过运行来构建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)
我试着改变DEVROOT的build_ios.sh和IPHONE_xxxx_TOOLCHAIN.cmake,因为那是什么CMAKE_C_COMPILER等似乎得到从产生,但它仍然给了我同样的错误.