Add a standard function to copy build/configuration types
I recently came across this question on Stack Overfow: How can I copy all build type parameters from an existing build type to a new build type?, which brought up a point that had surprised me before as a user, but that I just came to accept- that there is no (as far as I know) standard function in CMake to copy build/configuration types. I think it would be nice for there to be added one. I wrote an answer to that question proposing an implementation of such a function if you are interested (feedback is welcome. It's a rather naive approach and I don't know if I missed any gotchas).
Related feature request: #5811
Edited by starball