| 993 | } |
| 994 | |
| 995 | void cmGlobalGenerator::PrintCompilerAdvice(std::ostream& os, |
| 996 | std::string const& lang, |
| 997 | cmValue envVar) const |
| 998 | { |
| 999 | // Subclasses override this method if they do not support this advice. |
| 1000 | os << "Tell CMake where to find the compiler by setting "; |
| 1001 | if (envVar) { |
| 1002 | os << "either the environment variable \"" << *envVar << "\" or "; |
| 1003 | } |
| 1004 | os << "the CMake cache entry CMAKE_" << lang |
| 1005 | << "_COMPILER " |
| 1006 | "to the full path to the compiler, or to the compiler name " |
| 1007 | "if it is in the PATH."; |
| 1008 | } |
| 1009 | |
| 1010 | void cmGlobalGenerator::CheckCompilerIdCompatibility( |
| 1011 | cmMakefile* mf, std::string const& lang) const |