[CMake] Does CMake 2.6-patch 4 support MS Visual Studio 2008?

Sarbak, Joseph Joseph.Sarbak at rbccm.com
Fri Oct 30 14:06:59 EDT 2009


Hello Bill and Shane,

Thanks for offering your help.  Below is a listing of my directory where
I have the compilers installed, my PATH=, and also two of the cached
variables Bill asked about.  I don't know how to get two (MAKECOMMAND,
and CMAKE_BUILD_TOOL) of those variables.

I appreciate your help.

Joe
 

CMAKE_MAKE_PROGRAM=C:/PROGRA~1/MICROS~1.0/Common7/IDE/devenv.com
CMAKE_BUILD_TOOL=C:/PROGRA~1/MICROS~1.0/Common7/IDE/devenv.com

MAKECOMMAND:STRING=?
CMAKE_BUILD_TOOL:INTERNAL=?

Here are the first elements in my PATH=.  Notice VisStudio 2008 is
listed prior to any other compiler.

H:\dev\esp\trunk\main\models\build\..\..\..\..\third-party\cmake\cmake-2
.6.4-win32-x86\bin;c:\Program Files\Microsoft Visual Studio
9.0\Common7\IDE;c:\Program Files\Microsoft Visual Studio
9.0\VC\BIN;c:\Program Files\Microsoft Visual Studio 9.0\Common7\T
ools;c:\WINNT\Microsoft.NET\Framework\v3.5;c:\WINNT\Microsoft.NET\Framew
ork\v2.0.50727;c:\Program Files\Microsoft V
isual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft
SDKs\Windows\v6.0A\bin;H:\dev\esp\third-party\python\win_
...

Output from: dir c:\"Program Files" :

2008/02/26  03:29 PM    <DIR>          MICROS~3     Microsoft Visual
Studio
2009/06/11  11:32 AM    <DIR>          MICROS~2.NET Microsoft Visual
Studio .NET 2003
2009/10/05  08:52 PM    <DIR>          MID05A~1     Microsoft Visual
Studio 8
2009/10/20  05:08 PM    <DIR>          MICROS~1.0   Microsoft Visual
Studio 9.0


-----Original Message-----
From: Bill Hoffman [mailto:bill.hoffman at kitware.com] 
Sent: 2009, October, 30 1:32 PM
To: Dixon, Shane
Cc: Sarbak, Joseph; cmake at cmake.org
Subject: Re: [CMake] Does CMake 2.6-patch 4 support MS Visual Studio
2008?

Dixon, Shane wrote:
> Are you running from the command-line or from the cmake-gui?  If 
> you're running from the command-line, you need to be sure to run it 
> from the visual studio command prompt because it's picky about the
environment.
> When I generated visual studio 2008 projects in CMake 2.6, I always 
> used the cmake-gui and it worked.  Check your environment because I'd 
> say 80% of the time I had troubles, the environment was the culprit.
> 

The environment should only matter with makefiles.  The IDE projects
should work from any environment.



This is an interesting message:

'H:\dev\esp\trunk\main\models_build_win_msvc2008\CMakeFiles\CMakeTmp\CMA
KE_TRY_COMPILE.sln'
   is from a previous version of this application and must be converted
in
   order to build in this version of the application.  To convert the
   solution, open the solution in this version of the application.


It seems that it is using a different version of devenv to build the 
project than the generator that it is creating files for.

What are these values in your cache:
CMAKE_MAKE_PROGRAM:FILEPATH=C:/PROGRA~1/MICROS~1.0/Common7/IDE/devenv.co
m
MAKECOMMAND:STRING=C:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com 
CMake.sln /build Release /project ALL_BUILD
CMAKE_BUILD_TOOL:INTERNAL=C:/PROGRA~1/MICROS~1.0/Common7/IDE/devenv.com


-Bill
________________________________________

This E-Mail (including any attachments) may contain privileged or confidential information.  It is intended only for the addressee(s) indicated above.

The sender does not waive any of its rights, privileges or other protections respecting this information.  

Any distribution, copying or other use of this E-Mail or the information it contains, by other than an intended recipient, is not sanctioned and is prohibited.

If you received this E-Mail in error, please delete it and advise the sender (by return E-Mail or otherwise) immediately. 

This E-Mail (including any attachments) has been scanned for viruses. 

It is believed to be free of any virus or other defect that might affect any computer system into which it is received and opened. 

However, it is the responsibility of the recipient to ensure that it is virus free. 

The sender accepts no responsibility for any loss or damage arising in any way from its use.

E-Mail received by or sent from RBC Capital Markets is subject to review by Supervisory personnel. 

Such communications are retained and may be produced to regulatory authorities or others with legal rights to the information.

IRS CIRCULAR 230 NOTICE:  TO COMPLY WITH U.S. TREASURY REGULATIONS, WE ADVISE YOU THAT ANY U.S. FEDERAL TAX ADVISE INCLUDED IN THIS COMMUNICATION IS NOT INTENDED OR WRITTEN TO BE USED, AND CANNOT BE USED, TO AVOID ANY U.S. FEDERAL TAX PENALTIES OR TO PROMOTE, MARKET, OR RECOMMEND TO ANOTHER PARTY ANY TRANSACTION OR MATTER.



More information about the CMake mailing list