This change corrects an issue where CXXFLAGS were mistakenly overridden by CFLAGS.
cmake_system_version