On Thu, Mar 08, 2012 at 09:25:37PM -0500, Bill Hoffman wrote:
> On 3/8/2012 8:37 PM, Alan W. Irwin wrote:
>>
>> I think that would be confusing to users.
>>
>> Could you define an internal variable (to identify those generators
>> that have Makefile-like characteristics) that could be tested instead
>> of CMAKE_GENERATOR?
>
> I suppose you could, but it would not be backwards compatible. My  
> concern is all the projects that already exist that have code like this:
> if(CMAKE_GENERATOR MATCHES "Makefiles")
>
> A google search of that string gives my 5600 hits...
>
> Just trying to make as many projects work with ninja out of the box as  
> possible.

I did an exact search for that string:

http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=%22if(CMAKE_GENERATOR+MATCHES+Makefiles%22

and received only 36 hits, most of which seem to be matching
CMake's own code, which we can certainly change if necessary.

Thanks,
-- 
Peter
--

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

Reply via email to