Actions
Bug #940
closedCANONICAL_HOST_TYPE on Windows has confusing value
Start date:
2020-08-14
Due date:
% Done:
0%
Estimated time:
Module:
CMake
Operating System:
Compiler:
Description
When compiling 32-bit Binaries on Windows, the output for example of dcmdump --version shows:
$dcmtk: dcmdump v3.6.5 2019-10-28 $ dcmdump: Dump DICOM file and data set Host type: AMD64-Windows Character encoding: CP1252 Code page: 850 (OEM) / 1252 (ANSI)
Note that AMD64 is shown as host type despite the binary being a 32-bit binary. This is confusing.
Apparently the CMake variable SYSTEM_PROCESSOR has the value "AMD64" when compiling for Windows, even though 32-bit binaries are generated.
An alternative could be to use the CMake variable CMAKE_GENERATOR_PLATFORM instead of SYSTEM_PROCESSOR when available.
On Visual Studio, this would have the value "Win32" for 32-bit builds and "x64" for 64-bit builds.
Actions