ability to change default build script name from CMakeLists.txt
I have large enough project builds with CMake. It's time to update scripts from old 2.8 to some new 3.19 syntax. It looks like I better rewrite all my CMakeLists.txt using new features and leave old scripts in same folders. It helps me to not crush anything while I can finish rewriting completely.
So all I want in same folder ability to store and use:
CMakeLists.txt (default)
CMakeListsNew.txt (with custom name - key to cmake command line)
Once I satisfied with new scrips I can change default build command to command with prefix and after some time when everything is fine - completely drop old files.
I think best way to do it something like:
cmake -DCMAKE_DEFAULT_SCRIPT_NAME=CMakeListsNew.txt ...
Edited by Леонид Чайка