First time here? Check out the FAQ!
answered 2014-01-13 00:07:33 -0600
Do not add spaces after -D option:
-D
$ cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local <path to opencv>