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.

Re: [CMake] CMAKE_SIZEOF_VOID_P question

2017-04-14 Thread 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. > It is but the results from type size checking get saved in c

[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

Re: [CMake] Link Fortran executable with C library using CommandLineTools C compiler on Mac OSX

2017-04-14 Thread Algiane Froehly
Hi, I haven’t seen this posts, it works perfectly now. Thank you for your help. Regards, Algiane > Le 13 avr. 2017 à 12:52, Brad King a écrit : > > On 04/11/2017 05:31 AM, Algiane Froehly wrote: >> if I remove the -lto_library library that is added by the >> CMAKE_C_IMPLICIT_LINK_LIBRARIES v