Ticket #56572: patch-cmake-config.diff
File patch-cmake-config.diff, 644 bytes (added by mohd-akram (Mohamed Akram), 6 years ago) |
---|
-
CMake/FollyConfigChecks.cmake
old new 61 61 endif() 62 62 endif() 63 63 64 list(REMOVE_ITEM CMAKE_REQUIRED_FLAGS -std=gnu++14) 64 65 check_symbol_exists(pthread_atfork pthread.h FOLLY_HAVE_PTHREAD_ATFORK) 65 66 66 67 # Unfortunately check_symbol_exists() does not work for memrchr(): … … 75 76 FOLLY_HAVE_CPLUS_DEMANGLE_V3_CALLBACK 76 77 ) 77 78 check_function_exists(malloc_usable_size FOLLY_HAVE_MALLOC_USABLE_SIZE) 79 list(APPEND CMAKE_REQUIRED_FLAGS -std=gnu++14) 78 80 79 81 check_cxx_source_compiles(" 80 82 #pragma GCC diagnostic error \"-Wattributes\"