diff options
-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) |