cmake HAVE_SINCOS examples

QMCPACK/qmcpack CMake/CheckSincos.cmake :13

check_cxx_source_compiles("${SINCOS_TEST_SRC}" HAVE_SINCOS)

gnuradio/gnuradio gnuradio-runtime/ConfigChecks.cmake :87

CHECK_CXX_SOURCE_COMPILES("
    #define _GNU_SOURCE
    #include <math.h>
    int main(){double x, sin, cos; sincos(x, &sin, &cos); return 0;}
    " HAVE_SINCOS
)

MRPT/mrpt cmakemodules/script_detect_functions_headers.cmake :20

CHECK_FUNCTION_EXISTS(sincos HAVE_SINCOS)