[CMake] Detecting -m32 build target on 64-bit host

Nils Gladitz nilsgladitz at gmail.com
Thu Apr 23 11:20:33 EDT 2015


On 23.04.2015 17:08, Mateusz Loskot wrote:
> I know this trick, but this is not what I'm looking for, unless I
> misread the documentation.
>
> The doc says:
>
> "This is set to the size of a pointer on the machine"
>
> but not size of pointer on *target* architecture of a build.
>
> I believe I formulated my question clear.

Yes, all try_compile()s and CMAKE_SIZEOF_VOID_P in particular are 
specific to the target.

Nils


More information about the CMake mailing list