cmake - show command line for a test

Alexander Neundorf neundorf at kde.org
Sun Feb 12 21:09:31 CET 2006


On Sunday 12 February 2006 20:54, Peter Kümmel wrote:
...
> This works for C-linkage (as I understand it), where the correct
> declaration is not required, just the name of the function.
>
> But with the ms libraries this does not work, always
> the linker can't  find the complete (with parameters) function, you
> will see this when you test above program with the correct library.
>
> The work around is to test for a prototype and then set the HAVE macro.
>
> But the better way is to find a solution which solves the linker error,
> if possible.

Try using check_symbol_exist()) instead of check_function_exist(). This should 
help. I don't feel good when changing this myself because for me it works and 
I can't check whether a change helps for you windows guys.

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list