CentOs6下CMake OpenCV2.3.1错误

来源:互联网 发布:ps4无法与wifi网络连接 编辑:程序博客网 时间:2024/05/11 13:11

CMake OpenCV2.3.1时放生这样的错误:

CMake Error at CMakeLists.txt:44 (set_property):   set_property given invalid scope CACHE.  Valid scopes are GLOBAL,



问题所在

Check your CMake version. Support for set_property(CACHE ... ) was implemented in 2.8.0.

If upgrading CMake is not an option for you - I guess it's safe to comment line #44. It seems to be used to create values for drop-down list in GUI.

http://www.kitware.com/blog/home/post/82

http://blog.bethcodes.com/cmake-tips-tricks-drop-down-list


解决方法:

注释掉 CMakeLists.txt的第44行。

原创粉丝点击