1ADD_EXECUTABLE(rwlock_test rwlock_test.cc)
2TARGET_LINK_LIBRARIES(rwlock_test gtest gtest_main platform ${FOLLY_LIBRARIES})
3TARGET_INCLUDE_DIRECTORIES(rwlock_test PRIVATE
4        ${Platform_SOURCE_DIR}/include
5        ${FOLLY_INCLUDE_DIR})
6ADD_TEST(rwlock_test rwlock_test)
7
8# The death tests in this suite rely on halting as soon as an error is detected.
9# For macOS must explicitly enable deadlock detection.
10SET_TESTS_PROPERTIES(rwlock_test PROPERTIES
11  ENVIRONMENT "TSAN_OPTIONS=halt_on_error=1 detect_deadlocks=1")
12