Re: [CMake] cross compiling with sdcc

2015-06-13 Thread tors...@robitzki.de
Hi Alex, Am 13.06.2015 um 22:18 schrieb Alexander Neundorf : > On Friday, May 29, 2015 11:14:06 tors...@robitzki.de wrote: … >> I saw that there is a file Platform/Generic-SDCC-C.cmake, while searching >> for a way to force cmake to use this file, I found a makro >> CMAKE_FORCE_C_COMPILER that let

Re: [CMake] determining which system headerfile provides a given function

2015-06-13 Thread René J . V . Bertin
On Saturday June 13 2015 22:26:12 Alexander Neundorf wrote: > did you try check_symbol_exists() and the other similar functions ? Yes, but none that I could find give any information beyond whether the symbol exists. It may be possible (or necessary) to repeat such tests trying each of the poss

Re: [CMake] How does :: actually works?

2015-06-13 Thread Alexander Neundorf
On Thursday, June 11, 2015 19:18:55 Klaim - Joël Lamotte wrote: > On 11 June 2015 at 15:22, Johannes Zarl-Zierl > > wrote: > > Hi, > > > > > I tried several times now to find documentation about how to define > > > and use target names which seem to have namespaces, like Qt ones. > > > > > > Fo

Re: [CMake] determining which system headerfile provides a given function

2015-06-13 Thread Alexander Neundorf
On Wednesday, June 10, 2015 01:32:21 René J. V. Bertin wrote: > Ok, let me rephrase the question to see what other kind of constructive > answers that'll lead to: > > how does one check which header file provides the prototype for a function > from the system libraries? Function in question: reall

Re: [CMake] How to choose a compiler different from default?

2015-06-13 Thread Alexander Neundorf
On Sunday, June 07, 2015 17:39:39 Peng Yu wrote: > Hi, I following the following steps to compile gtest. > > https://code.google.com/p/tonatiuh/wiki/GoogleTest > > But the following output shows that it uses the default compiler on > Mac OS X. I want to use some other compiler. Does anybody know

Re: [CMake] cross compiling with sdcc

2015-06-13 Thread Alexander Neundorf
On Friday, May 29, 2015 11:14:06 tors...@robitzki.de wrote: > Hello, > I was looking for some resources on how to configure cmake to use the small > device c compiler (sdcc). I tried a little bit and found that cmake assumed > that the object file extension would be .obj. But sdcc uses .rel for obj

[CMake] wrapping a macro

2015-06-13 Thread René J . V . Bertin
Hello, Is it possible to wrap an existing macro that returns a result via one of its arguments? I think it will be clear what I would like to do from the following example: if(${INTRINSICS_TEST_TYPE} MATCHES "compiles") macro(check_intrinsics_availability source var) check_c_source_