[CMake] Name of the current Target being built
David Cole
david.cole at kitware.com
Wed Nov 7 13:00:08 EST 2012
No. There is no concept of a "current target". What would that be? The
name of the last library added with add_library? Or the last
executable? Or the last custom target?
There's a current source and binary directory, and a current
CMakeLists file, but there can be any number of targets within one of
those.
On Wed, Nov 7, 2012 at 12:29 PM, Marshall, Rob <robm at qti.qualcomm.com> wrote:
> From a CMAKE script that I am writing is there a way to tell the name of the
> current target that is being built without having to pass the target name
> into the script as a parameter?
>
>
>
> Thanks,
>
> Rob
>
>
> --
>
> 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://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list