CMAKE_SYSTEM_PROCESSOR on SmartOS 64-bit shows up as i386
CMAKE_HOST_SYSTEM_PROCESSOR are evaluated using the output of
uname -p etc.
On SmartOS 64-bit (global zone),
uname -p returns
uname -a outputs like:
SunOS se-smartos-template-04 5.11 joyent_20180315T080815Z i86pc i386 i86pc
Based on this thread https://github.com/joyent/illumos-joyent/issues/91, the recommended way is to use
isainfo -kv, which results in
64-bit amd64 kernel modules.
Please special-case the processor detection when
isainfo is available on a system make the experience more robust.
Thank you & best regards.