From b408e5901a1284750132100282813b407a76a7af Mon Sep 17 00:00:00 2001 From: Roelof Oomen Date: Thu, 30 May 2024 13:04:41 +0200 Subject: [PATCH] Fix deprecated exec_program command --- tesseract_common/cmake/tesseract_macros.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tesseract_common/cmake/tesseract_macros.cmake b/tesseract_common/cmake/tesseract_macros.cmake index 6608939f208..872ae1e941a 100644 --- a/tesseract_common/cmake/tesseract_macros.cmake +++ b/tesseract_common/cmake/tesseract_macros.cmake @@ -80,7 +80,7 @@ macro(tesseract_variables) -Wsign-conversion -Wno-sign-compare -Wnon-virtual-dtor) - exec_program(uname ARGS -p OUTPUT_VARIABLE CMAKE_SYSTEM_NAME2) + execute_process(COMMAND uname -p OUTPUT_VARIABLE CMAKE_SYSTEM_NAME2) if(NOT CMAKE_SYSTEM_NAME2 MATCHES @@ -117,7 +117,7 @@ macro(tesseract_variables) -Werror=sign-conversion -Wno-sign-compare -Werror=non-virtual-dtor) - exec_program(uname ARGS -p OUTPUT_VARIABLE CMAKE_SYSTEM_NAME2) + execute_process(COMMAND uname -p OUTPUT_VARIABLE CMAKE_SYSTEM_NAME2) if(NOT CMAKE_SYSTEM_NAME2 MATCHES