cmake - show command line for a test

Peter Kümmel syntheticpp at gmx.net
Mon Feb 13 22:22:06 CET 2006


Alexander Neundorf wrote:
> On Monday 13 February 2006 18:13, Christian Ehrlicher wrote:
>> Alexander Neundorf schrieb:
>>> Hi,
>>>
> ...
>> My problem is not that we have to check for getaddrinfo but that the
>> test for "struct addrinfo" fails because the kdewin32 include paths
>> aren't used during test compile (see my other mail)
> 
> I rearranged several things yesterday, and I can't test the windows stuff, so 
> it is possible that I broke something.
> The following code is in kdelibs/ConfigureChecks.cmake, add some debug output 
> there to see the contents of KDEWIN32_INCLUDES. 
> 
> if (WIN32)
>    set(CMAKE_REQUIRED_LIBRARIES ${KDEWIN32_LIBRARIES} )
>    set(CMAKE_REQUIRED_INCLUDES  ${KDEWIN32_INCLUDES} )
> endif (WIN32)
> 
> If the contents are not ok, check FindKDEWIN32.cmake and find out what is 
> going wrong there.
> 
> If there everything is ok, check the file CheckFunctionExists.cmake. On my 
> system it contains the following code:
> 
> 

addrinfo is not tested with function_exists:

check_type_size("struct addrinfo" HAVE_STRUCT_ADDRINFO)

Is it necessary to use this check?

Peter


More information about the Kde-buildsystem mailing list