Skip to content

Instantly share code, notes, and snippets.

@danslo
Created December 13, 2014 15:54
Show Gist options
  • Save danslo/bee38e04f5d7616ba80f to your computer and use it in GitHub Desktop.
Save danslo/bee38e04f5d7616ba80f to your computer and use it in GitHub Desktop.
diff --git a/thrift/CMakeLists.txt b/thrift/CMakeLists.txt
index 8c46fd4..9e0eab8 100644
--- a/thrift/CMakeLists.txt
+++ b/thrift/CMakeLists.txt
@@ -60,6 +60,9 @@ list(REMOVE_ITEM files
list(APPEND CXX_SOURCES ${files})
add_definitions(-DNO_LIB_GFLAGS)
+if (APPLE)
+ add_definitions(-DTHRIFT_MUTEX_EMULATE_PTHREAD_TIMEDLOCK)
+endif()
find_package(Boost 1.48.0 COMPONENTS thread system REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment