Use check_symbol_exists instead of check_function_exists

Authored by heikobecker on Feb 7 2019, 6:25 PM.

Description

Use check_symbol_exists instead of check_function_exists

Summary:
check_function_exists has some shortcomings, which fails to detect
isnan when build against musl libc. The cmake documentation [1]
suggests to prefer check_symbol_exists, which detects isnan/isinf
fine on both glibc and musl.

[1] https://cmake.org/cmake/help/latest/module/CheckFunctionExists.html#command:check_function_exists

Test Plan: Builds with glibc and musl

Subscribers: Calligra-Devel-list

Tags: #calligra:_3.0

Differential Revision: https://phabricator.kde.org/D18866

Details

Committed
heikobeckerFeb 11 2019, 12:23 PM
Differential Revision
D18866: Use check_symbol_exists instead of check_function_exists
Parents
R8:9d4a8b32e43d: Words: Fix crash after loading of ott file fails
Branches
Unknown
Tags
Unknown