CMake save config

asked 2019-10-01 11:43:01 -0600

WolfG gravatar image

Greetings!

I hope not being too off topic, cause the question has not directly to do with OpenCV.

This is a Windows 10 installation and I use CMake 3.15.3 to configure and generate opencv 4.1.0.

I change several options within the CMake GUI and would like to save GMakeLists.txt for later reuse, e.g. new openCV version.

I see that there is a .cache directory, but the entries dont seem suitable.

On a linux I'd use the commandline option, but I'm on win10.

What I want to do: after successful config, genereate and build I want to save all configuration options for being reused at a later time.

Thanks for hints, Wolf

edit retag flag offensive close merge delete

Comments

"On a linux I'd use the commandline option, but I'm on win10." Use git bash on windows 10 as linux

LBerger gravatar imageLBerger ( 2019-10-01 12:06:01 -0600 )edit

Yes, could do that; However I'm not too fond additionally installing yet another tool for compiling. I assume using this way I have to use the 'CMake My Changes' file/copy paste?

WolfG gravatar imageWolfG ( 2019-10-01 14:26:40 -0600 )edit

you can use command prompt too and may be powershell

LBerger gravatar imageLBerger ( 2019-10-01 14:30:42 -0600 )edit
1

Your are right. But using a GUI such as CMakeGUI it seems to be pointless changing and adding options within the GUI and then having to switch to a shell just to save the changes just being applied in the GUI. There must be a feature for simply saving the entire CMakeFiles.txt including the changes applied before generation.

WolfG gravatar imageWolfG ( 2019-10-02 09:08:03 -0600 )edit
1

Finally your question is off topics. try to ask on [email protected]

LBerger gravatar imageLBerger ( 2019-10-02 13:46:16 -0600 )edit

Thanks for your time

WolfG gravatar imageWolfG ( 2019-10-02 13:48:54 -0600 )edit