Ticket #56572: patch-cmake-config.diff

File patch-cmake-config.diff, 644 bytes (added by mohd-akram (Mohamed Akram), 6 years ago)

Patch to fix CMake build

  • CMake/FollyConfigChecks.cmake

    old new  
    6161  endif()
    6262endif()
    6363
     64list(REMOVE_ITEM CMAKE_REQUIRED_FLAGS -std=gnu++14)
    6465check_symbol_exists(pthread_atfork pthread.h FOLLY_HAVE_PTHREAD_ATFORK)
    6566
    6667# Unfortunately check_symbol_exists() does not work for memrchr():
     
    7576  FOLLY_HAVE_CPLUS_DEMANGLE_V3_CALLBACK
    7677)
    7778check_function_exists(malloc_usable_size FOLLY_HAVE_MALLOC_USABLE_SIZE)
     79list(APPEND CMAKE_REQUIRED_FLAGS -std=gnu++14)
    7880
    7981check_cxx_source_compiles("
    8082  #pragma GCC diagnostic error \"-Wattributes\"