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.
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.
解决方法:
注释掉 CMakeLists.txt的第44行。