[CMake] Name of the current Target being built

2012-11-07 Thread Marshall, Rob
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

Re: [CMake] Name of the current Target being built

2012-11-07 Thread David Cole
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