[cmake-developers] [CMake 0011292]: CMakeDetermineVSServicePack.cmake uses try_compile to get the compiler version. cl.exe /? is much faster

Mantis Bug Tracker mantis at public.kitware.com
Wed Oct 6 08:49:29 EDT 2010


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11292 
====================================================================== 
Reported By:                Aaron C. Meadows
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11292
Category:                   CMake
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2010-10-06 08:49 EDT
Last Modified:              2010-10-06 08:49 EDT
====================================================================== 
Summary:                    CMakeDetermineVSServicePack.cmake uses try_compile
to get the compiler version.  cl.exe /? is much faster
Description: 
Using try_compile(), there is a lot more work going on than is necessary
just to get the version from the compiler. It is present at the top of the
help output in the same format.  I've modified the script to use that
command instead and it is quite a bit faster at picking out the version of
the compiler.

Patch attached.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-10-06 08:49 Aaron C. MeadowsNew Issue                                    
2010-10-06 08:49 Aaron C. MeadowsFile Added:
CMakeDetermineVSServicePack.Fast.patch                    
======================================================================




More information about the cmake-developers mailing list