
CMake has several classes which have too many responsibilities. cmLocalGenerator is one of them. Start to extract the link line computation. Create generator-specific implementations of the interface to account for generator-specific behavior. Unfortunately MSVC60 has different behavior to everything else and CMake still generates makefiles for it. Isolate it with MSVC60-specific names.
26 lines
631 B
C++
26 lines
631 B
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
|
|
|
#ifndef cmNinjaLinkLineComputer_h
|
|
#define cmNinjaLinkLineComputer_h
|
|
|
|
#include "cmLinkLineComputer.h"
|
|
#include "cmState.h"
|
|
|
|
class cmGlobalNinjaGenerator;
|
|
|
|
class cmNinjaLinkLineComputer : public cmLinkLineComputer
|
|
{
|
|
public:
|
|
cmNinjaLinkLineComputer(cmState::Directory stateDir,
|
|
cmGlobalNinjaGenerator const* gg);
|
|
|
|
std::string ConvertToLinkReference(std::string const& input) const
|
|
CM_OVERRIDE;
|
|
|
|
private:
|
|
cmGlobalNinjaGenerator const* GG;
|
|
};
|
|
|
|
#endif
|