[cmake-developers] [PATCH 4/7] Make cmLocalGenerator::ConvertToLinkReference virtual

Rolf Eike Beer eike at sf-mail.de
Tue Sep 27 10:00:33 EDT 2011


> This provides a mechanism for the local generator to override how
> library search paths are generated.
> ---
>  Source/cmLocalGenerator.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h
> index 1f5a26e..69e452b 100644
> --- a/Source/cmLocalGenerator.h
> +++ b/Source/cmLocalGenerator.h
> @@ -369,7 +369,7 @@ protected:
>    std::string FindRelativePathTopBinary();
>    void SetupPathConversions();
>
> -  std::string ConvertToLinkReference(std::string const& lib);
> +  virtual std::string ConvertToLinkReference(std::string const& lib);
>
>    /** Check whether the native build system supports the given
>        definition.  Issues a warning.  */

You have not changed this, but I wonder why this function is "std::string
const&" while the others are usually "const std::string &".

Eike



More information about the cmake-developers mailing list