diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-03-01 13:28:39 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-03-01 13:28:39 (GMT) |
commit | 07260a6f271e73f5c46f6accee1e629499afa5de (patch) | |
tree | df01c41bd8d7b428ac3e0f5d40847954874fcead /Source/cmGlobalXCodeGenerator.cxx | |
parent | d231a422ed888acf774ff251a640e092957ec844 (diff) | |
download | CMake-07260a6f271e73f5c46f6accee1e629499afa5de.zip CMake-07260a6f271e73f5c46f6accee1e629499afa5de.tar.gz CMake-07260a6f271e73f5c46f6accee1e629499afa5de.tar.bz2 |
ENH: Cleanup global targets even more and potentially fix Xcode
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index d7736a4..cf9a6f2 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -283,45 +283,7 @@ cmGlobalXCodeGenerator::AddExtraTargets(cmLocalGenerator* root, no_working_directory, "echo", "Build all projects"); cmTarget* allbuild = mf->FindTarget("ALL_BUILD"); - // ADD install - std::string cmake_command = mf->GetRequiredDefinition("CMAKE_COMMAND"); - if(m_XcodeVersion == 15) - { - mf->AddUtilityCommand("install", false, no_output, no_depends, - no_working_directory, - cmake_command.c_str(), - "-P", "cmake_install.cmake"); - } - else - { - mf->AddUtilityCommand("install", false, no_output, no_depends, - no_working_directory, - cmake_command.c_str(), - "-DBUILD_TYPE=$(CONFIGURATION)", - "-P", "cmake_install.cmake"); - } - const char* noall = - mf->GetDefinition("CMAKE_SKIP_INSTALL_ALL_DEPENDENCY"); - if(!noall || cmSystemTools::IsOff(noall)) - { - cmTarget* install = mf->FindTarget("install"); - install->AddUtility("ALL_BUILD"); - } - - // Add RUN_TESTS target if testing has been enabled - std::string fname; - fname = mf->GetStartOutputDirectory(); - fname += "/"; - fname += "DartTestfile.txt"; - if (cmSystemTools::FileExists(fname.c_str())) - { - std::string ctest_command = - mf->GetRequiredDefinition("CMAKE_CTEST_COMMAND"); - mf->AddUtilityCommand("RUN_TESTS", false, no_output, no_depends, - no_working_directory, - ctest_command.c_str()); - } // Add XCODE depend helper std::string dir = mf->GetCurrentOutputDirectory(); m_CurrentXCodeHackMakefile = dir; |