diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-10-14 17:56:49 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-10-14 17:56:49 (GMT) |
commit | ec9f2a18cc67d54c48dc8e88bc6edad23c611a34 (patch) | |
tree | 6a28253e0db426f016cf73b3469d3dbcd6035f8f /Source/cmEnableLanguageCommand.cxx | |
parent | 9210fef65b6ca6b527cfdf42b91cc27fc975f73d (diff) | |
download | CMake-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.cxx | 7 |
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) |