Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cmake: how to build opencv in both debug and release mode?

I am using Cmake GUI 2.8 to build opencv 2.4.10 on a linux machine. I want to build both Debug and Release versions at the same time so that I will have two libraries /lib/Debug and /lib/Release.

I notice that opencv has parameter CMAKE_BUILD_TYPE but don't know how to enable both types.

How do I configure CMake GUI to do that?

like image 330
Tu Bui Avatar asked Apr 14 '15 18:04

Tu Bui


1 Answers

Is not possible to do them at the same time. You should configure two separate build directories, one for the debug and one for the release builds.

like image 102
Antonio Avatar answered Oct 23 '22 22:10

Antonio