View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014392CMakeCMakepublic2013-09-07 00:302014-03-05 09:58
ReporterBryanM 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformPCOSWindowsOS VersionWindows 7
Product VersionCMake 2.8.10.2 
Target VersionFixed in Version 
Summary0014392: Multiple Versions of Visual Studio causing problems with configure
DescriptionVisual Studio 2010 and 2012 are both installed on this machine.
Selected Generator: Visual Studio 11 Win 64

On first configure CMake detects MSVC_VERSION = 1700 and MSVC11 = 1, on subsequent configures (with no changes made at all)MSVC_VERSION = 1600.
Steps To ReproduceI have Visual Studio 2010 and 2012 installed on this machine. CMake seems to be having trouble with this (I assume), as i have a case where the values of MSVC_VERSION will change for no reason with a configure.
To help debug this issue I have the following prints in my CMakeLists.txt

if(DEFINED MSVC11)
    message("MSVC11 = ${MSVC11}")
endif()

if(DEFINED MSVC_VERSION)
    message("MSVC_VERSION = ${MSVC_VERSION}")
endif()

To start with a fresh config I delete the cache, then click configure. I get prompted to select the generator for the project at which I select "Visual Studio 11 Win 64" and "Use default native compilers".

On this first run, my prints output the following
MSVC11 = 1
MSVC_VERSION = 1700

I then click configure again. This time, my prints change.
MSVC_VERSION = 1600

Subsequent configures all list MSVC_VERSION = 1600.

As I selected a generator for VisualStudio 11 and it detectes 11, I would expect this MSVC_VERSION to reamin 1700, rather than change to 1600 on all but the first configure calls.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0033791)
Brad King (manager)
2013-09-09 10:33

I have VS 6, 7.1, 8, 9, 10, 11 and the 12 preview on one machine. They all work together and with CMake. Make sure you don't allow any of the versions to set the environment (PATH, INCLUDE, LIB) globally.

Also please try the latest release, 2.8.11.2, or even better the 2.8.12 release candidates:

 http://www.cmake.org/files/v2.8/?C=M;O=D [^]
(0033805)
BryanM (reporter)
2013-09-11 22:50

Thanks for the response Brad,
I downloaded 2.8.12-rc3 and re-ran the same case which had be given me trouble... worked fine! I'm happy to get rid of my temp work around of assuming a version and not checking. Not sure what the problem was, but it seems that 2.8.12-rc3 fixes it.

I would mark this as fixed if I could (If i can and am missing how, sorry).
(0033807)
Brad King (manager)
2013-09-12 08:27

Okay, thanks for reporting back.
(0035255)
Robert Maynard (manager)
2014-03-05 09:58

Closing resolved issues that have not been updated in more than 4 months

 Issue History
Date Modified Username Field Change
2013-09-07 00:30 BryanM New Issue
2013-09-09 10:33 Brad King Note Added: 0033791
2013-09-11 22:50 BryanM Note Added: 0033805
2013-09-12 08:27 Brad King Note Added: 0033807
2013-09-12 08:27 Brad King Status new => resolved
2013-09-12 08:27 Brad King Resolution open => no change required
2014-03-05 09:58 Robert Maynard Note Added: 0035255
2014-03-05 09:58 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team