[cmake-developers] [CMake 0011594]: Incorrect generator for VC2010
Mantis Bug Tracker
mantis at public.kitware.com
Fri Dec 10 11:34:32 EST 2010
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=11594
======================================================================
Reported By: Petr Petrov
Assigned To:
======================================================================
Project: CMake
Issue ID: 11594
Category: CMake
Reproducibility: always
Severity: major
Priority: urgent
Status: new
======================================================================
Date Submitted: 2010-12-10 11:34 EST
Last Modified: 2010-12-10 11:34 EST
======================================================================
Summary: Incorrect generator for VC2010
Description:
I have created a small Cmake\C++ project which shows this error\issue.
It is a simple Cmake project.
It contains 1 static C++ library and 1 executable C++ project, which uses the
static library.
I am specifying to build these two projects into Release configuration.
But the static library is being built into DEBUG configuration also!
I have tried to reproduce this example for VC2008 generator - and it works fine
- only Release version of binaries were created!
It causes problem in my big project build!
Any ideas?
Thank you very much,
Petr
Steps to Reproduce:
1) Unpack the attached CMake project;
2) Generate solution and VC2010 project files into xxx\build folder by using
VC2010 (32-bit) generator;
3) run "msbuild TestPetrPetrov.sln /m:1 /p:Configuration=Release
/p:Platform=Win32" in xxx\build folder from command line
4) see in "xxx\build\Debug\" folder. Here are Lib1.lib and lib1.pdb!!! It is an
error! I specified to compile only "RELEASE" configuration, *NOT* debug!
5) see in "xxx\build\Release\" folder. Here are Example1.exe and Lib1.lib. It is
correct behavior.
P.S. Also I see messages that DEBUG version of Lib1 is being built:
Lib:
C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\Lib.exe
/OUT:"D:\cmake_test3\build\Debug\Lib1.lib" /NOLOGO Lib1.
dir\Debug\lib.obj
Lib1.vcxproj -> D:\cmake_test3\build\Debug\Lib1.lib
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2010-12-10 11:34 Petr Petrov New Issue
2010-12-10 11:34 Petr Petrov File Added: cmake_test_petr_petrov.zip
======================================================================
More information about the cmake-developers
mailing list