I have observed the below detailed behaviour when compiling a C++ program with 2 different CMake versions: