diff options
author | Brad King <brad.king@kitware.com> | 2015-06-29 18:51:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-06-29 20:18:32 (GMT) |
commit | 327490e698db7a74f6a8e8543e99c6c7c9333a8f (patch) | |
tree | 3ceec17b8606008feab64847b89323a9782f9708 /Source/cmGlobalGenerator.cxx | |
parent | bbfebcbc13df87173dd8cb59cd34e1e0b3e1c0cc (diff) | |
download | CMake-327490e698db7a74f6a8e8543e99c6c7c9333a8f.zip CMake-327490e698db7a74f6a8e8543e99c6c7c9333a8f.tar.gz CMake-327490e698db7a74f6a8e8543e99c6c7c9333a8f.tar.bz2 |
enable_language: Allow CMakeDetermine<LANG>Compiler module to fail early
If the module reports a FATAL_ERROR, skip the rest of the steps to
enable the language to avoid unnecessary following error messages.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 14eaeac..23ab93d 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -564,6 +564,10 @@ cmGlobalGenerator::EnableLanguage(std::vector<std::string>const& languages, cmSystemTools::Error("Could not find cmake module file: ", determineCompiler.c_str()); } + if (cmSystemTools::GetFatalErrorOccured()) + { + return; + } needTestLanguage[lang] = true; // Some generators like visual studio should not use the env variables // So the global generator can specify that in this variable |