summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-12-14 21:48:04 (GMT)
committerBrad King <brad.king@kitware.com>2010-12-14 21:48:04 (GMT)
commitcbc3258e678af865b476a42394a0de5718c29848 (patch)
tree43a3cc6bf537cfdf10784bf628e281b7dd34b1eb /Source
parentda0a8f7f448a6ebbf39f50199f661b63a1cdc261 (diff)
parent2afb820352845513d46af1464cb1161e335eb435 (diff)
downloadCMake-cbc3258e678af865b476a42394a0de5718c29848.zip
CMake-cbc3258e678af865b476a42394a0de5718c29848.tar.gz
CMake-cbc3258e678af865b476a42394a0de5718c29848.tar.bz2
Merge branch 'try-compile-min-version' into cygwin
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCoreTryCompile.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx
index b8a0c95..a1c707d 100644
--- a/Source/cmCoreTryCompile.cxx
+++ b/Source/cmCoreTryCompile.cxx
@@ -169,8 +169,9 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv)
const char* lang =(this->Makefile->GetCMakeInstance()->GetGlobalGenerator()
->GetLanguageFromExtension(ext.c_str()));
const char* def = this->Makefile->GetDefinition("CMAKE_MODULE_PATH");
- fprintf(fout, "cmake_minimum_required(VERSION %u.%u)\n",
- cmVersion::GetMajorVersion(), cmVersion::GetMinorVersion());
+ fprintf(fout, "cmake_minimum_required(VERSION %u.%u.%u.%u)\n",
+ cmVersion::GetMajorVersion(), cmVersion::GetMinorVersion(),
+ cmVersion::GetPatchVersion(), cmVersion::GetTweakVersion());
if(def)
{
fprintf(fout, "SET(CMAKE_MODULE_PATH %s)\n", def);