summaryrefslogtreecommitdiffstats
path: root/Source/cmEnableLanguageCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-10-14 17:56:49 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-10-14 17:56:49 (GMT)
commitec9f2a18cc67d54c48dc8e88bc6edad23c611a34 (patch)
tree6a28253e0db426f016cf73b3469d3dbcd6035f8f /Source/cmEnableLanguageCommand.cxx
parent9210fef65b6ca6b527cfdf42b91cc27fc975f73d (diff)
downloadCMake-ec9f2a18cc67d54c48dc8e88bc6edad23c611a34.zip
CMake-ec9f2a18cc67d54c48dc8e88bc6edad23c611a34.tar.gz
CMake-ec9f2a18cc67d54c48dc8e88bc6edad23c611a34.tar.bz2
ENH: revert last change, as it fails tests
Diffstat (limited to 'Source/cmEnableLanguageCommand.cxx')
-rw-r--r--Source/cmEnableLanguageCommand.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/Source/cmEnableLanguageCommand.cxx b/Source/cmEnableLanguageCommand.cxx
index 560c833..930f871 100644
--- a/Source/cmEnableLanguageCommand.cxx
+++ b/Source/cmEnableLanguageCommand.cxx
@@ -28,13 +28,6 @@ bool cmEnableLanguageCommand
("called with incorrect number of arguments");
return false;
}
- if(this->Makefile->GetCMakeInstance()->GetIsInTryCompile())
- {
- this->SetError
- ("called from a try_compile, "
- "all languages must be enabled before trying them.");
- return false;
- }
for (std::vector<std::string>::const_iterator it = args.begin();
it != args.end();
++it)