I am familiar with bug 9974 and I've been following it for quite some time :) I thought there was enough interest in the feature (especially from myself) to work on it. However, I do like the idea of generator expressions being supported in OUTPUT, this is a more ideal situation and would only affect the multi-configuration generators, so I don't have to change the command options & stuff which I have found so far to be a nightmare (mostly because I am unfamiliar with the code base). 13840 sounds much easier. If no one else is working on that, I can invest my time into it instead.
On Mon, May 13, 2013 at 8:28 AM, Brad King <brad.k...@kitware.com> wrote: > On 05/12/2013 07:32 PM, Robert Dailey wrote: >> I'm currently working on adding a CONFIG keyword to the >> add_custom_command() command. > > The need for a CONFIG keyword was largely removed by support for > generator expressions in custom commands. > > There is discussion and and old patch here: > > http://www.cmake.org/Bug/view.php?id=9974 > > There is also discussion of adding support in OUTPUT and DEPENDS > for generator expressions: > > http://www.cmake.org/Bug/view.php?id=13840 > > With that one would almost never need the CONFIG keyword. > >> I'm not familiar with the code at all. >> Right now I'm trying to figure out how CMake handles configurations >> for Visual Studio. Are they handled only in the Generate() function? >> Or does the configuration step also have knowledge of them? > > There are two kinds of generators: > > * Single configuration, determined by CMAKE_BUILD_TYPE at > config time. All Makefile generators and Ninja work this way. > > * Multiple configuration, listed by CMAKE_CONFIGURATION_TYPES > at config time but the final configuration is selected at > build time by the native tool. The Xcode and VS generators > work this way. > > Therefore CMake commands cannot know the build configuration, > but generators do. The multi-config generators write out all > the supported configs and typically loop over them. > > -Brad -- 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