cmake HAVE_NEWLOCALE examples

hyperrealm/libconfig lib/CMakeLists.txt :106

check_symbol_exists(newlocale "xlocale.h" HAVE_NEWLOCALE)

hyperrealm/libconfig lib/CMakeLists.txt :110

check_symbol_exists(newlocale "locale.h" HAVE_NEWLOCALE)

hyperrealm/libconfig lib/CMakeLists.txt :124

target_compile_definitions(${libname}
        PRIVATE "HAVE_NEWLOCALE")

hyperrealm/libconfig lib/CMakeLists.txt :127

target_compile_definitions(${libname}++
          PRIVATE "HAVE_NEWLOCALE")