[CMake] Issue with Visual Studio 8 2005 Win64

Malhotra, Anupam Anupam.Malhotra at Safenet-inc.com
Wed Jul 23 01:01:01 EDT 2008


Hi

 

I created a solution for Visual Studio 8 2005 Win64 using CMake. The sln
has various projects all of which are to be built using VS 2005 for x64.
When the sln is opened, the x64 configuration is selected by default for
all projects.I have set some project dependencies (say project x is
dependent on projects a,b,c,d,e, project e is dependent of project f and
so on) among the various projects in the sln. Now, a weird issue is
occurring when I am building all the projects using devenv command line.
All the projects build successfully except for one project (say project
x). Project x has dependencies on say 10 different projects. Each time
project x is built using the command line, some of the dependent
projects start failing with the following error:

 

6>CMake Error: The C compiler "F:/Program Files (x86)/Microsoft Visual
Studio 8/VC/bin/amd64/cl.exe" is not able to compile a simple test
program.

6>It fails with the following output:

6> 

6>Microsoft (R) Visual Studio Version 8.0.50727.42.

6>Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

8>CMake Error: The C compiler "F:/Program Files (x86)/Microsoft Visual
Studio 8/VC/bin/amd64/cl.exe" is not able to compile a simple test
program.

6>1>------ Build started: Project: cmTryCompileExec, Configuration:
Debug Win32 ------

8>It fails with the following output:

6>1>Compiling...

....

....

....

11>1>Linking...

11>1>.\cmTryCompileExec.dir\Debug\testCCompiler.obj : fatal error
LNK1112: module machine type 'X86' conflicts with target machine type
'x64'

 

Also, when the sln is now opened, by default the configuration Win32
(instead of x64) is selected for all projects.

 

It seems like the project created for x64 is somehow getting corrupted
(and changed to Win32) during compilation.

 

Please help. Any advice would be greatly appreciated.

 

Thanks and Regards

Anupam Malhotra


The information contained in this electronic mail transmission 
may be privileged and confidential, and therefore, protected 
from disclosure. If you have received this communication in 
error, please notify us immediately by replying to this 
message and deleting it from your computer without copying 
or disclosing it.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080723/fda13272/attachment.htm>


More information about the CMake mailing list