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

dataroaring 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 ee1ad137468 [fix](merge-cloud) fix BUILD_CHECK_META do not take effect 
during compilation (#33450)
ee1ad137468 is described below

commit ee1ad13746873eacb8e22567f7f061b8f8b2dbec
Author: Luwei <[email protected]>
AuthorDate: Wed Apr 10 10:16:06 2024 +0800

    [fix](merge-cloud) fix BUILD_CHECK_META do not take effect during 
compilation (#33450)
---
 cloud/CMakeLists.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/cloud/CMakeLists.txt b/cloud/CMakeLists.txt
index 721ae14e7ef..35164af9f9c 100644
--- a/cloud/CMakeLists.txt
+++ b/cloud/CMakeLists.txt
@@ -193,6 +193,10 @@ if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
     set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -faligned-new")
 endif()
 
+if(BUILD_CHECK_META STREQUAL "ON")
+    set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -DBUILD_CHECK_META")
+endif()
+
 # For any gcc builds:
 #   -g: Enable symbols for profiler tools. Produce debugging information in 
the operating system’s native formt
 #   -Wno-unused-local-typedefs: Do not warn for local typedefs that are unused.
@@ -242,10 +246,6 @@ endif()
 # Add flags that are common across build types
 SET(CMAKE_CXX_FLAGS "${CXX_COMMON_FLAGS} ${CMAKE_CXX_FLAGS} 
${EXTRA_CXX_FLAGS}")
 
-if(BUILD_CHECK_META STREQUAL "ON")
-    set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -DBUILD_CHECK_META")
-endif()
-
 message(STATUS "Compiler Flags: ${CMAKE_CXX_FLAGS}")
 
 # Thrift requires these two definitions for some types that we use


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

Reply via email to