Skip to content

Commit 09d0d0e

Browse files
committed
build: define network test macro globally
1 parent f76554b commit 09d0d0e

3 files changed

Lines changed: 1 addition & 11 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ if(PAIMON_ENABLE_JINDO)
7373
add_definitions(-DPAIMON_ENABLE_JINDO)
7474
endif()
7575
if(PAIMON_ENABLE_NETWORK_TESTS)
76-
if(NOT PAIMON_BUILD_TESTS)
77-
message(FATAL_ERROR "PAIMON_ENABLE_NETWORK_TESTS requires PAIMON_BUILD_TESTS=ON")
78-
endif()
76+
add_definitions(-DPAIMON_ENABLE_NETWORK_TESTS)
7977
endif()
8078
if(PAIMON_USE_CXX11_ABI)
8179
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=1)

src/paimon/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -823,8 +823,4 @@ if(PAIMON_BUILD_TESTS)
823823
EXTRA_INCLUDES
824824
${JINDOSDK_INCLUDE_DIR})
825825

826-
if(PAIMON_ENABLE_NETWORK_TESTS)
827-
target_compile_definitions(paimon-fs-test PRIVATE PAIMON_ENABLE_NETWORK_TESTS)
828-
endif()
829-
830826
endif()

test/inte/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ if(PAIMON_BUILD_TESTS)
4040
${TEST_STATIC_LINK_LIBS}
4141
test_utils_static
4242
${GTEST_LINK_TOOLCHAIN})
43-
if(PAIMON_ENABLE_NETWORK_TESTS)
44-
target_compile_definitions(paimon-write-and-read-inte-test
45-
PRIVATE PAIMON_ENABLE_NETWORK_TESTS)
46-
endif()
4743

4844
add_paimon_test(clean_inte_test
4945
STATIC_LINK_LIBS

0 commit comments

Comments
 (0)