Skip to content

Commit

Permalink
Using execute_process instead exec_program
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Oct 9, 2024
1 parent 510cb79 commit d9c7b0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/cmake/xtd_commands.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ macro(get_operating_system_name OPERATING_SYSTEM_NAME)
elseif (APPLE)
set(${OPERATING_SYSTEM_NAME} "macOS")
elseif (UNIX)
exec_program("uname" OUTPUT_VARIABLE ${OPERATING_SYSTEM_NAME})
execute_process(COMMAND "uname" OUTPUT_VARIABLE ${OPERATING_SYSTEM_NAME})
string(STRIP ${${OPERATING_SYSTEM_NAME}} ${OPERATING_SYSTEM_NAME})
else ()
set(${OPERATING_SYSTEM_NAME} "Unknown")
endif ()
Expand Down

0 comments on commit d9c7b0d

Please sign in to comment.