Ask Your Question

Revision history [back]

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

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.

[https://docs.opencv.org/2.4/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html]

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?