CheckCXXCompilerFlag
CHECK_CXX_COMPILER_FLAG(FLAG VARIABLE)
FLAG - the compiler flag VARIABLE - variable to store the result