This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new a8973d63c8b [fix](ut) fix BE ut compilation error (#57359)
a8973d63c8b is described below

commit a8973d63c8bf3bdd47640ca48bb051aac8740f87
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Tue Oct 28 15:28:29 2025 +0800

    [fix](ut) fix BE ut compilation error (#57359)
    
    followup #57181
    After upgrading gtest to 1.12, need include <gtest/gtest.h>
---
 be/test/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/test/CMakeLists.txt b/be/test/CMakeLists.txt
index 315cdf2ea80..9a7b26f984d 100644
--- a/be/test/CMakeLists.txt
+++ b/be/test/CMakeLists.txt
@@ -112,7 +112,7 @@ add_executable(doris_be_test ${UT_FILES})
 target_link_libraries(doris_be_test ${TEST_LINK_LIBS} 
     -Wl,--whole-archive vector_search_test -Wl,--no-whole-archive)
 set_target_properties(doris_be_test PROPERTIES COMPILE_FLAGS 
"-fno-access-control")
-
+target_compile_options(doris_be_test PRIVATE -include gtest/gtest.h)
 if (OS_MACOSX AND ARCH_ARM)
     find_program(DSYMUTIL NAMES dsymutil)
     message(STATUS "dsymutil found: ${DSYMUTIL}")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to