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

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


The following commit(s) were added to refs/heads/master by this push:
     new a1427c82a7 set CMAKE_HOST for TS_BUILD_CANONICAL_HOST (#11154)
a1427c82a7 is described below

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

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

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a4ded94b6e..7bc10df048 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