Fixed version of https://phabricator.kde.org/D5449
check_cxx_compiler_flag writes to the CMake cache so the first check
applied to all compile flags. Fixed by using a unique variable name
per compile flag. Now also works with GCC on my system
arichardson | Apr 14 2017, 3:21 PM |