diff options
author | Brad King <brad.king@kitware.com> | 2010-12-16 19:00:24 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2010-12-16 19:00:24 (GMT) |
commit | 6b61c04330fa693c1e246c94e230ff8641dee00e (patch) | |
tree | ea28bdbe8102e65299fba63f36e02570faef3529 /Source | |
parent | 58347549e61fd94e840469326c36abc32d41cea0 (diff) | |
parent | 2afb820352845513d46af1464cb1161e335eb435 (diff) | |
download | CMake-6b61c04330fa693c1e246c94e230ff8641dee00e.zip CMake-6b61c04330fa693c1e246c94e230ff8641dee00e.tar.gz CMake-6b61c04330fa693c1e246c94e230ff8641dee00e.tar.bz2 |
Merge topic 'try-compile-min-version'
2afb820 Write full version into try_compile CMakeLists
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmCoreTryCompile.cxx | 5 |
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); |