Skip to content

CMAKE_CL_64 documentation error

The documentation for the CMAKE_CL_64 variable states:

Set to true when using the 64-bit cl compiler from Microsoft.

This appears to be inaccurate in a couple of respects.

  1. The value is either 1 or 0; never true. (I appreciate that CMake treats both 1 and true as logically true values; however, if this value is substituted somewhere that is not processed by CMake, the difference is material.)
  2. The value is still 0 if one is using the 64-bit compiler to build 32-bit binaries. Similarly, the value is 1 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.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information