CheckCXXSymbolExists ignores target_compile_features
Since version 3 it is discouraged to set compiler flags by hand, instead using functionality like target_compile_features. This does not work correctly with check_cxx_symbol_exists, which still requires CMAKE_REQUIRED_FLAGS.