[cmake] use check_library_exists instead of check_symbol_exists
[cmake] use check_library_exists instead of check_symbol_exists

bh107/bohrium,madsbk/bohrium,bh107/bohrium,madsbk/bohrium,madsbk/bohrium,madsbk/bohrium,bh107/bohrium,bh107/bohrium