[CMake] VS 2010 macro

James Bigler jamesbigler at gmail.com
Tue Sep 13 12:46:28 EDT 2011


On Tue, Aug 30, 2011 at 9:11 AM, Bill Hoffman <bill.hoffman at kitware.com>wrote:

> On 8/30/2011 4:11 AM, Andrea Galeazzi wrote:
>
>> Hi,
>> I'd like to know if the bug 0011258
>> <http://public.kitware.com/**Bug/view.php?id=11258<http://public.kitware.com/Bug/view.php?id=11258>>
>> will be fixed or the
>>
>> community simply decided to give it up.
>> Any changes for 0012294 to be assigned?
>>
>>
> I don't think we have given up, but we are certainly at a technical
> roadblock.   No really has a solution that will work consistently.
>
> To give a background, the auto-running of cmake when input files change,
> and the subsequent reloading of the project in the VS 10 IDE is not always
> working.  In VS 8 and 9, we have a solution that works pretty well.   It
> does something like this:
>
>
> 1. cmake is run when any of its input files are changed
> 2. if cmake finds a running VS IDE that has the same project loaded
>   - It pops up a dialog that gives the user the chance to:
>      - stop the current build and reload the project
>
> This is done with a VS macro that is installed by cmake.
>
> This fails to work well in VS 10.
>
> -Bill
>
> ______________________________**_________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html<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<http://www.cmake.org/Wiki/CMake_FAQ>
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/**listinfo/cmake<http://www.cmake.org/mailman/listinfo/cmake>
>

Is it not possible to have two macros?  One for VS 2010 and one for
earlier?  I know you dislike code divergence, but you already have different
code paths already for the generators.  It doesn't seem much of a stretch to
have separate macros for multiple versions of VS.  The bug seems to indicate
that there are working solutions for both VS 2010 and VS 2008, but they are
different.

James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110913/3c51cbd4/attachment.htm>


More information about the CMake mailing list