summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-01-21 17:50:48 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-01-21 17:50:48 (GMT)
commit2f4ea98a4cf35b0aa6ced86c98c4b96984ef4fb7 (patch)
tree2e7ba2c7d45537691296edc194f605f623bcc3a7 /Source/cmGlobalGenerator.cxx
parent110bc04bd0125ef746ad8ea239c632831f7c5075 (diff)
downloadCMake-2f4ea98a4cf35b0aa6ced86c98c4b96984ef4fb7.zip
CMake-2f4ea98a4cf35b0aa6ced86c98c4b96984ef4fb7.tar.gz
CMake-2f4ea98a4cf35b0aa6ced86c98c4b96984ef4fb7.tar.bz2
add a fatal error, and make sure c and c++ compilers work before using them
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index edbed80..e5991e4 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -213,12 +213,14 @@ void cmGlobalGenerator::EnableLanguage(const char* lang,
{
if (!m_CMakeInstance->GetIsInTryCompile())
{
+ std::string ifpath = root + "/Modules/CMakeTestCCompiler.cmake";
+ mf->ReadListFile(0,ifpath.c_str());
// for old versions of CMake ListFiles
const char* versionValue
= mf->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY");
if (atof(versionValue) <= 1.4)
{
- std::string ifpath = root + "/Modules/CMakeBackwardCompatibilityC.cmake";
+ ifpath = root + "/Modules/CMakeBackwardCompatibilityC.cmake";
mf->ReadListFile(0,ifpath.c_str());
}
}
@@ -227,6 +229,8 @@ void cmGlobalGenerator::EnableLanguage(const char* lang,
{
if (!m_CMakeInstance->GetIsInTryCompile())
{
+ std::string ifpath = root + "/Modules/CMakeTestCXXCompiler.cmake";
+ mf->ReadListFile(0,ifpath.c_str());
// for old versions of CMake ListFiles
const char* versionValue
= mf->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY");