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

cmcfarlen pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 3d86f0e2542fcf2ae158348314f06ec429658729
Author: Chris McFarlen <[email protected]>
AuthorDate: Tue Mar 12 15:06:06 2024 -0500

    set CMAKE_HOST for TS_BUILD_CANONICAL_HOST (#11154)
    
    (cherry picked from commit a1427c82a7c1c12b3155aecef0df765313dec1cf)
---
 CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8ec664d50e..7d9e4c4c7c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -577,6 +577,8 @@ if(EXISTS "${PROJECT_SOURCE_DIR}/include/ink_autoconf.h")
   message(STATUS "Autoconf build detected in source tree. Removing autoconf 
headers.")
 endif()
 
+set(CMAKE_HOST "${CMAKE_HOST_SYSTEM_NAME}-${CMAKE_HOST_SYSTEM_PROCESSOR}")
+
 # In-tree autoconf configuration causes duplicate definitions of some symbols
 # in generated headers. If the files don't exist, no error is emitted.
 file(REMOVE "${PROJECT_SOURCE_DIR}/include/tscore/ink_config.h")
@@ -757,6 +759,7 @@ install(FILES "${PROJECT_BINARY_DIR}/Findtsapi.cmake" 
DESTINATION ${CMAKE_INSTAL
 # Display build summary
 include(CMakePrintHelpers)
 message(STATUS "Build Summary:")
+cmake_print_variables(CMAKE_HOST)
 cmake_print_variables(CMAKE_SYSTEM_NAME)
 cmake_print_variables(CMAKE_SYSTEM_VERSION)
 cmake_print_variables(CMAKE_SYSTEM_PROCESSOR)

Reply via email to