CHECK_CXX_COMPILER_FLAG returns wrong results with std flag with VS2015
With VS2015 Update 3
CHECK_CXX_COMPILER_FLAG("-std=c++11" CHECK_CXX_FLAG)
CHECK_CXX_COMPILER_FLAG("-std=gnu++11" CHECK_GNUCXX_FLAG)
both the CHECK_...
variables return 1
although the compiler does not support any of them.
(There is a -std:c++14 flag, but it's not the same!)
EDIT: I realize that the MSVC compiler does NOT give any error. So actually the command respects its promises.