Commit fdf4feab authored by Ilya Maykov's avatar Ilya Maykov Committed by Facebook Github Bot

fix cmake rule for AsyncIOTest

Summary: Make AsyncIOTest.cpp conditionally depend on $LIBAIO_FOUND in CMakeLists.txt.

Reviewed By: yfeldblum

Differential Revision: D14365682

fbshipit-source-id: 5ac7dc25174ab48ed1de8846956e69c7759fc9bd
parent 19d7960b
......@@ -502,8 +502,6 @@ if (BUILD_TESTS)
TEST tuple_ops_test SOURCES TupleOpsTest.cpp
DIRECTORY experimental/io/test/
# Depends on libaio
#TEST async_io_test SOURCES AsyncIOTest.cpp
TEST fs_util_test SOURCES FsUtilTest.cpp
DIRECTORY external/farmhash/test/
......@@ -816,6 +814,13 @@ if (BUILD_TESTS)
)
endif()
if (${LIBAIO_FOUND})
folly_define_tests(
DIRECTORY experimental/io/test/
TEST async_io_test SOURCES AsyncIOTest.cpp
)
endif()
get_target_property(pic folly POSITION_INDEPENDENT_CODE)
if (pic)
add_library(singleton_thread_local_overload
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment