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

2015-04-29 Thread Mateusz Loskot
On 24 April 2015 at 21:00, Gregor Jasny wrote: > On 23/04/15 16:54, Mateusz Loskot wrote: >> Surprisingly, I'm having trouble to figure out how to determine, >> that in Linux 64-bit OS, I'm building a project with -m32 specified. >> IOW, any CMake variable or macro to tell me target architecture >

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

2015-04-24 Thread Gregor Jasny
Hi, On 23/04/15 16:54, Mateusz Loskot wrote: > Surprisingly, I'm having trouble to figure out how to determine, > that in Linux 64-bit OS, I'm building a project with -m32 specified. > IOW, any CMake variable or macro to tell me target architecture > of a build that is being configured is 32 or 64

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

2015-04-23 Thread Mateusz Loskot
On 23 April 2015 at 18:04, Nils Gladitz wrote: > On 23.04.2015 18:00, Mateusz Loskot wrote: >> >> It's better, indeed, but what about >> >> "This is set to the size of a pointer on the target machine for which >> the (machine) code is generated." > > > Hm that is in my opinion too redundant. > The

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

2015-04-23 Thread Nils Gladitz
On 23.04.2015 18:00, Mateusz Loskot wrote: It's better, indeed, but what about "This is set to the size of a pointer on the target machine for which the (machine) code is generated." Hm that is in my opinion too redundant. There is only one target machine as far as cmake is concerned and there

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

2015-04-23 Thread Mateusz Loskot
On 23 April 2015 at 17:50, Nils Gladitz wrote: > On 23.04.2015 17:32, Mateusz Loskot wrote: >> >> So, the documentation is imprecise in this regard, isn't it? >> >> Best regards, > > > Is this better? > http://www.cmake.org/cmake/help/git-next/variable/CMAKE_SIZEOF_VOID_P.html It's better, indeed

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

2015-04-23 Thread Nils Gladitz
On 23.04.2015 17:32, Mateusz Loskot wrote: So, the documentation is imprecise in this regard, isn't it? Best regards, Is this better? http://www.cmake.org/cmake/help/git-next/variable/CMAKE_SIZEOF_VOID_P.html Nils -- Powered by www.kitware.com Please keep messages on-topic and check the CMa

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

2015-04-23 Thread Mateusz Loskot
On 23 April 2015 at 17:20, Nils Gladitz 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 po

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

2015-04-23 Thread Nils Gladitz
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 qu

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

2015-04-23 Thread Mateusz Loskot
On 23 April 2015 at 16:57, Nils Gladitz wrote: > On 04/23/2015 04:54 PM, Mateusz Loskot wrote: >> >> Hi, >> >> Surprisingly, I'm having trouble to figure out how to determine, >> that in Linux 64-bit OS, I'm building a project with -m32 specified. >> IOW, any CMake variable or macro to tell me tar

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

2015-04-23 Thread Nils Gladitz
On 04/23/2015 04:54 PM, Mateusz Loskot wrote: Hi, Surprisingly, I'm having trouble to figure out how to determine, that in Linux 64-bit OS, I'm building a project with -m32 specified. IOW, any CMake variable or macro to tell me target architecture of a build that is being configured is 32 or 64

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

2015-04-23 Thread Mateusz Loskot
Hi, Surprisingly, I'm having trouble to figure out how to determine, that in Linux 64-bit OS, I'm building a project with -m32 specified. IOW, any CMake variable or macro to tell me target architecture of a build that is being configured is 32 or 64 bit? Best regards, -- Mateusz Loskot, http://