学习cmake http://xwz.me/wiki/doku.php?id=cmake 碰到的一些问题: 1.You have changed variables that require your cache to be deleted死循环 解决方法:CMakeList.txt中include包含的子模板含有环境变量传入的标示且存在ADD_SUBDIRECTORY子目录控制,此时需要将子模板放置在CMakeList.txt的头部中 CMAKE的使用 http://blog.csdn.net
{ Usage cmake [options] <path-to-source> cmake [options] <path-to-existing-build> Specify a source directory to (re-)generate a build system for it in thecurrent working directory. Specify an existing build directory tore-generate its build
问题: CMake Error at CMakeLists.txt:3 (find_package): By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "OpenCV", but CMake did not find one. Could not