#1527 Fix the configure_cmake script
In _parse_pre_cache_file(), this script parses crudely the generic pre-cache file and the result is used to generate the one to be used.
However, in the process the if statement depending on the mode is lost: the field is read twice and the second value (related to release mode) is always used.