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

Mateusz Loskot mateusz at loskot.net
Thu Apr 23 11:32:53 EDT 2015


On 23 April 2015 at 17:20, Nils Gladitz <nilsgladitz at gmail.com> wrote:
> 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.

So, the documentation is imprecise in this regard, isn't it?

Best regards,
-- 
Mateusz  Loskot, http://mateusz.loskot.net


More information about the CMake mailing list