cmLocalXCodeGenerator.cxx 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #include "cmLocalXCodeGenerator.h"
  11. #include "cmGlobalXCodeGenerator.h"
  12. #include "cmSourceFile.h"
  13. //----------------------------------------------------------------------------
  14. cmLocalXCodeGenerator::cmLocalXCodeGenerator()
  15. {
  16. // the global generator does this, so do not
  17. // put these flags into the language flags
  18. this->EmitUniversalBinaryFlags = false;
  19. }
  20. //----------------------------------------------------------------------------
  21. cmLocalXCodeGenerator::~cmLocalXCodeGenerator()
  22. {
  23. }
  24. //----------------------------------------------------------------------------
  25. std::string
  26. cmLocalXCodeGenerator::GetTargetDirectory(cmTarget const&) const
  27. {
  28. // No per-target directory for this generator (yet).
  29. return "";
  30. }
  31. //----------------------------------------------------------------------------
  32. void cmLocalXCodeGenerator::
  33. GetTargetObjectFileDirectories(cmTarget* target,
  34. std::vector<std::string>&
  35. dirs)
  36. {
  37. cmGlobalXCodeGenerator* g =
  38. (cmGlobalXCodeGenerator*)this->GetGlobalGenerator();
  39. g->SetCurrentLocalGenerator(this);
  40. g->GetTargetObjectFileDirectories(target,
  41. dirs);
  42. }