[cmake-developers] [CMake 0012567]: MSVC11 variable is not set

Mantis Bug Tracker mantis at public.kitware.com
Wed Nov 9 20:52:06 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12567 
====================================================================== 
Reported By:                Mateusz Loskot
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12567
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-11-09 20:52 EST
Last Modified:              2011-11-09 20:52 EST
====================================================================== 
Summary:                    MSVC11 variable is not set
Description: 
This version of CMake supports generator for Visual Studio 11 (current Developer
Preview):

C:\>cmake --help | grep "Visual Studio 11"
  Visual Studio 11            = Generates Visual Studio 11 project files.
  Visual Studio 11 Win64      = Generates Visual Studio 11 Win64 project

However, MSVC11 variable is not set. 
So, CMake-provided modules like FindBoost.cmake can not perform libraries lookup
effectively, because they rely on MSVCXY variable:

...
elseif (MSVC90)
   set(_boost_COMPILER "-vc90")
elseif (MSVC10)
   set(_boost_COMPILER "-vc100")
...


It also looks FindBoost.cmake is lacking of

elseif (MSVC11)
  set(_boost_COMPILER "-vc110")


By the way, the documentation mentions only MSVC and MSVC80 variables:
http://cmake.org/cmake/help/cmake-2-8-docs.html#variable:MSVC80
It does not document variables for other versions of Visual C++ like MSVC71.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-11-09 20:52 Mateusz Loskot New Issue                                    
======================================================================




More information about the cmake-developers mailing list