[cmake-developers] [PATCH 2/3] Add support for executable with exports flags to cmLocalGenerator::GetTargetFlags

David Cole david.cole at kitware.com
Sat Nov 12 10:45:04 EST 2011


Looks like PATCH 3/3 didn't come through... (too large for the mailing list?)

The 3rd commit of this series can be seen online here, though:

  https://github.com/pcc/CMake/commit/0b3efcb39e93378757c563f800789dcdcc3d7d16


On Fri, Nov 11, 2011 at 9:36 PM, Peter Collingbourne <peter at pcc.me.uk> wrote:
> ---
>  Source/cmLocalGenerator.cxx |   10 ++++++++++
>  1 files changed, 10 insertions(+), 0 deletions(-)
>
> diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
> index 65d6fa6..ebdfdf5 100644
> --- a/Source/cmLocalGenerator.cxx
> +++ b/Source/cmLocalGenerator.cxx
> @@ -1583,6 +1583,16 @@ void cmLocalGenerator::GetTargetFlags(std::string& linkLibs,
>           this->Makefile->GetSafeDefinition("CMAKE_CREATE_CONSOLE_EXE");
>         linkFlags += " ";
>         }
> +      if (target.IsExecutableWithExports())
> +        {
> +        std::string exportFlagVar = "CMAKE_EXE_EXPORTS_";
> +        exportFlagVar += linkLanguage;
> +        exportFlagVar += "_FLAG";
> +
> +        linkFlags +=
> +          this->Makefile->GetSafeDefinition(exportFlagVar.c_str());
> +        linkFlags += " ";
> +        }
>       const char* targetLinkFlags = target.GetProperty("LINK_FLAGS");
>       if(targetLinkFlags)
>         {
> --
> 1.7.5.3
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
>



More information about the cmake-developers mailing list