From ec9f2a18cc67d54c48dc8e88bc6edad23c611a34 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 14 Oct 2008 13:56:49 -0400 Subject: [PATCH] ENH: revert last change, as it fails tests --- Source/cmEnableLanguageCommand.cxx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Source/cmEnableLanguageCommand.cxx b/Source/cmEnableLanguageCommand.cxx index 560c833c1..930f87142 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::const_iterator it = args.begin(); it != args.end(); ++it)