[CMake] NMake Generation Error: machine type 'X86' conflicts with target machine type 'x64'
Aaron_Wright at selinc.com
Aaron_Wright at selinc.com
Fri Nov 13 12:00:49 EST 2009
I have the windows SDK installed. It came with Visual Studio. I run
everything from perl, so in my script, I set the environment to:
$ENV{"VSINSTALLDIR"} = "C:\\Program Files\\Microsoft Visual
Studio 9.0";
$ENV{"VCINSTALLDIR"} = "C:\\Program Files\\Microsoft Visual
Studio 9.0\\VC";
$ENV{"FrameworkDir"} = "C:\\WINDOWS\\Microsoft.NET\\Framework";
$ENV{"FrameworkVersion"} = "v2.0.50727";
$ENV{"Framework35Version"} = "v3.5";
$ENV{"DevEnvDir"} = "C:\\Program Files\\Microsoft Visual Studio
9.0\\Common7\\IDE";
$ENV{"PATH"} = "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\\Tools;C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5;C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727;C:\\Program
Files\\Microsoft Visual Studio 9.0\\VC\\VCPackages;C:\\Program
Files\\Microsoft SDKs\\Windows\\v6.0A\\bin;" . $ENV{"PATH"};
$ENV{"INCLUDE"} = "C:\\Program Files\\Microsoft Visual Studio
9.0\VC\\INCLUDE;C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\Include
;" . $ENV{"INCLUDE"};
$ENV{"LIB"} = "C:\\Program Files\\Microsoft Visual Studio
9.0\\VC\\LIB;C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\Lib;" .
$ENV{"LIB"};
$ENV{"LIBPATH"} =
"C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5;C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727;C:\\Program
Files\\Microsoft Visual Studio 9.0\\VC\\LIB;" . $ENV{"LIBPATH"};
Note the Windows SDK
---------------------------------------------------------
Aaron Wright
Bill Hoffman <bill.hoffman at kitware.com>
Sent by: cmake-bounces at cmake.org
11/13/2009 08:26 AM
To
Aaron_Wright at selinc.com
cc
CMake <cmake at cmake.org>
Subject
Re: [CMake] NMake Generation Error: machine type 'X86' conflicts with
target machine type 'x64'
Aaron_Wright at selinc.com wrote:
>
> I've tried this on several machines and CMake always seems to think the
> box is x64 even though it clearly says it's x86. I can fix the problem
> by deleting CMakeCache.txt and running CMake again, which is weird. I'm
> trying to automate the whole thing in a night build script so this
> behavior is not helpful. Ideas?
> ---------------------------------------------------------
> Aaron Wright
You need to install the windows SDK for CMake to work.
-Bill
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091113/b9c0c596/attachment.htm>
More information about the CMake
mailing list