How to save OpenCV configure settings and make Visual Studio use them on full rebuild?

asked 2018-01-08 12:24:03 -0600

I am new to using the OpenCV library and I am having a problem in making my codebase portable.

I have built OpenCV 3.3.1 from the source using the cmake gui and visual studio using the tutorial in the link below.


I have specific configuration settings which I use when configuring OpenCV using cmake to generate the visual studio projects.

If I move my codebase to a new system and rebuild the solution, the visual studio tries to run cmake and reconfigure, but it does not use my settings causing the configuration to fail. Is there a way to save the cmake configuration settings used during the initial build and have Visual Studio use them every time it has to do a full rebuild?

edit retag flag offensive close merge delete


I think it is not an opencv problem but cmake problem : try to post your message on cmake forum.

Have you try to disable project ZERO_CHECk in VS configuration manager?

LBerger gravatar imageLBerger ( 2018-01-08 12:36:41 -0600 )edit