Skip to content

Commit

Permalink
Fix deprecated exec_program command
Browse files Browse the repository at this point in the history
  • Loading branch information
rjoomen committed May 30, 2024
1 parent 660d42d commit b408e59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tesseract_common/cmake/tesseract_macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b408e59

Please sign in to comment.