Re: [CMake] CMAKE_SIZEOF_VOID_P question

2017-04-16 Thread Thomas Nilefalk
Ghislain Vaillant skrev: Next question is then why doesn't GNUInstallDirs set CMAKE_INSTALL_LIBDIR as I expect on Ubuntu for the example I gave? I am expecting to see either lib64/lib (for 64/32 bit) or a triplet for (32-bit). Now it's always 'lib'. Debian / Ubuntu injects this additional tri

Re: [CMake] CMAKE_SIZEOF_VOID_P question

2017-04-14 Thread Thomas Nilefalk
Den 2017-04-14 kl. 21:27, skrev Chuck Atkins: Hi Thomas, According to the documentation CMAKE_SIZEOF_VOID_P it is determined by running the compiler. However it seems that it is not using pertinent flags from the configuration, in particular CMAKE_C_FLAGS and CMAKE_CXX_FLAGS.

[CMake] CMAKE_SIZEOF_VOID_P question

2017-04-14 Thread Thomas Nilefalk
I'm developing a library on and for a multitude of platforms and would like to provide both 32 and 64-bit versions for all platforms this is relevant for. I'm currently on Ubuntu 64bit with CMake 3.5.2 and use the "-m32" compiler switch to do the 32-bit compile. I'm trying to understand why