CMAKE_CL_64 documentation error
The documentation for the CMAKE_CL_64
variable states:
Set to
true
when using the 64-bitcl
compiler from Microsoft.
This appears to be inaccurate in a couple of respects.
- The value is either
1
or0
; nevertrue
. (I appreciate that CMake treats both1
andtrue
as logically true values; however, if this value is substituted somewhere that is not processed by CMake, the difference is material.) - The value is still
0
if one is using the 64-bit compiler to build 32-bit binaries. Similarly, the value is1
if one is using the 32-bit compiler to build 64-bit binaries. In other words, the value changes based on whether one is building 64- or 32-bit binaries, not based on whether the compiler is a 64- or 32-bit application.