diff options
author | Brad King <brad.king@kitware.com> | 2005-03-01 12:26:25 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-03-01 12:26:25 -0500 |
commit | 2aa613b98c28daa5ed71f7b1798976197b467a76 (patch) | |
tree | a192d565a5ad66139cbce34f0c30a811e076af79 /Source | |
parent | e979735a195d45c3c1ed8657b0c4bad96aad90cf (diff) | |
download | cmake-2aa613b98c28daa5ed71f7b1798976197b467a76.tar.gz |
ENH: Enabling cmLocalUnixMakefileGenerator2 (new makefile generator) by default.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalUnixMakefileGenerator.cxx | 5 | ||||
-rw-r--r-- | Source/cmake.cxx | 20 |
2 files changed, 7 insertions, 18 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator.cxx b/Source/cmGlobalUnixMakefileGenerator.cxx index b4b472d190..e4b7f511df 100644 --- a/Source/cmGlobalUnixMakefileGenerator.cxx +++ b/Source/cmGlobalUnixMakefileGenerator.cxx @@ -16,7 +16,7 @@ =========================================================================*/ #include "cmGlobalUnixMakefileGenerator.h" -#include "cmLocalUnixMakefileGenerator.h" +#include "cmLocalUnixMakefileGenerator2.h" #include "cmMakefile.h" #include "cmake.h" @@ -31,6 +31,7 @@ void cmGlobalUnixMakefileGenerator::EnableLanguage(std::vector<std::string>const cmMakefile *mf) { mf->AddDefinition("CMAKE_CFG_INTDIR","."); + mf->AddDefinition("CMAKE_GENERATOR_NEW", "1"); this->cmGlobalGenerator::EnableLanguage(languages, mf); std::string path; for(std::vector<std::string>::const_iterator l = languages.begin(); @@ -73,7 +74,7 @@ void cmGlobalUnixMakefileGenerator::EnableLanguage(std::vector<std::string>const ///! Create a local generator appropriate to this Global Generator cmLocalGenerator *cmGlobalUnixMakefileGenerator::CreateLocalGenerator() { - cmLocalGenerator *lg = new cmLocalUnixMakefileGenerator; + cmLocalGenerator* lg = new cmLocalUnixMakefileGenerator2; lg->SetGlobalGenerator(this); return lg; } diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 716f59dc3e..f909159cec 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -25,9 +25,10 @@ #if defined(CMAKE_BUILD_WITH_CMAKE) # include "cmVariableWatch.h" # include "cmVersion.h" -# include "cmLocalUnixMakefileGenerator2.h" #endif +#include "cmLocalUnixMakefileGenerator2.h" + // only build kdevelop generator on non-windows platforms // when not bootstrapping cmake #if !defined(_WIN32) @@ -291,20 +292,11 @@ void cmake::SetArgs(const std::vector<std::string>& args) } else if(arg.find("-S",0) == 0) { - directoriesSet = true; - m_Local = true; - std::string path = arg.substr(2); - path = cmSystemTools::CollapseFullPath(path.c_str()); - cmSystemTools::ConvertToUnixSlashes(path); - this->SetStartDirectory(path.c_str()); + // There is no local generate anymore. Ignore -S option. } else if(arg.find("-O",0) == 0) { - directoriesSet = true; - std::string path = arg.substr(2); - path = cmSystemTools::CollapseFullPath(path.c_str()); - cmSystemTools::ConvertToUnixSlashes(path); - this->SetStartOutputDirectory(path.c_str()); + // There is no local generate anymore. Ignore -O option. } else if(arg.find("-B",0) == 0) { @@ -839,13 +831,11 @@ int cmake::CMakeCommand(std::vector<std::string>& args) return result; } -#ifdef CMAKE_BUILD_WITH_CMAKE // Internal CMake dependency scanning support. else if (args[1] == "cmake_depends" && args.size() >= 5) { return cmLocalUnixMakefileGenerator2::ScanDependencies(args)? 0 : 1; } -#endif #if defined(_WIN32) && !defined(__CYGWIN__) // Write registry value @@ -1664,10 +1654,8 @@ int cmake::CheckBuildSystem() } } -#if defined(CMAKE_BUILD_WITH_CMAKE) // We do not need to rerun CMake. Check dependency integrity. cmLocalUnixMakefileGenerator2::CheckDependencies(mf); -#endif // No need to rerun. return 0; |