It seems very easy when compiling opencv library for the release mode:
cmake -D CMAKE_BUILD_TYPE=RELEASE ../
or cmake DCMAKE_BUILD_TYPE:string=Release ../
However, the created project is still in Debug mode, and I was wondering how I could do in order to make the project in a release mode. Thanks.
The configuration name is case-sensitive, and the CMake command line arg needs a - at the front. The arg type (i.e. string in your example) is optional, so the command should be:
cmake -DCMAKE_BUILD_TYPE=Release ..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With