MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0015603 | CMake | CMake | public | 2015-06-03 13:46 | 2016-01-04 11:51 |
Reporter | Jan Ciger | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Windows 7 | OS | Windows 7 64bit | OS Version | Family ed |
Product Version | CMake 3.2.2 | ||||
Target Version | Fixed in Version | ||||
Summary | 0015603: CMake ignores the configured Visual C/C++ compiler | ||||
Description | CMake Visual Studio 2013 generators (probably other versions too, but not tested) will select incorrect architecture, regardless whether or not "vcvarsall.bat amd64" was executed beforehand. cmake . (with no generator specified) will configure 32bit build cmake -G "Visual Studio 12 2013" will still configure only a 32bit build (the only VS 2013 generator listed in the --help output) On the other hand cmake-gui offers 3 (!) generators: "Visual Studio 12 2013" (probably 32bit build?) "Visual Studio 12 2013 Win32" (32bit build) "Visual Studio 12 2013 Win64" (64bit build) with the 64bit build being the default. This behaviour is rather inconsistent: * Both tools should be offering the same generators * The tools should offer the correct, currently configured toolchain because otherwise all kinds of issues happen due to the Microsoft's tools being misconfigured. The Microsoft batch files set the following env variables that can be used to identify the current setup: 64bit tools targetting 64bit native build @set Platform=X64 @set CommandPromptType=Native 64bit tools cross-compiling for 32bit @set Platform=X86 @set CommandPromptType=Cross @set PreferredToolArchitecture=x64 64bit tools cross-compiling for ARM @set Platform=ARM @set CommandPromptType=Cross @set PreferredToolArchitecture=x64 etc. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2015-06-03 13:46 | Jan Ciger | New Issue | |||
2015-06-03 14:34 | Brad King | Note Added: 0038879 | |||
2015-06-03 14:34 | Brad King | Status | new => resolved | ||
2015-06-03 14:34 | Brad King | Resolution | open => no change required | ||
2015-06-03 16:45 | Jan Ciger | Note Added: 0038880 | |||
2016-01-04 11:51 | Robert Maynard | Note Added: 0040058 | |||
2016-01-04 11:51 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|