[cmake-developers] [PATCH 7/7] Fix configuration-dependent flag lookup in cmLocalGenerator::GetTargetFlags

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


> ---
>  Source/cmLocalGenerator.cxx |   23 ++++++++++++++++++++---
>  1 files changed, 20 insertions(+), 3 deletions(-)
>
> diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
> index aeda164..4044876 100644
> --- a/Source/cmLocalGenerator.cxx
> +++ b/Source/cmLocalGenerator.cxx
> @@ -1463,6 +1463,17 @@ void cmLocalGenerator::GetTargetFlags(std::string&
> linkLibs,
>          linkFlags += targetLinkFlags;
>          linkFlags += " ";
>          }
> +      if(buildType.size())

This could also be "if(!buildType.empty())", but it's hard to decide which
one to use. This file alone uses a great mixture of both variants.

Eike



More information about the cmake-developers mailing list