isnan() and isinf() checks

Hasso Tepper hasso at kde.org
Thu Apr 12 19:58:13 BST 2007


Alexander Neundorf wrote:
> Using "-lm" is no good idea, as Christian already stated.

Mkay. Better now?
 
> Please take a look at kdelibs/cmake/modules/MacroPushRequiredVars.cmake, it 
> offers two macros:
> 
> # Usage:
> # MACRO_PUSH_REQUIRED_VARS()
> # SET(CMAKE_REQUIRED_DEFINITIONS
>       ${CMAKE_REQUIRED_DEFINITIONS} -DSOME_MORE_DEF)
> # CHECK_FUNCTION_EXISTS(...)
> # MACRO_POP_REQUIRED_VARS()

Thanks for info.

> Can you please check whether check_symbol_exists() (from  
> Modules/CheckSymbolExists.cmake) does what you need instead of using 
> check_c_source_compiles() directly ?

Indeed. I didn't realise that it does work for macros as well. Updated
patch is attached.


regards,

-- 
Hasso Tepper
KDE Estonian Team
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kjs4-isnan-isinf.patch
Type: text/x-diff
Size: 822 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070412/2bfb13d2/attachment.patch>


More information about the kde-core-devel mailing list