Skip to content

Commit

Permalink
Use execute_process instead of exec_program
Browse files Browse the repository at this point in the history
Resolves #3723
  • Loading branch information
rocallahan committed Apr 13, 2024
1 parent 1cafd63 commit 126ceea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1846,7 +1846,7 @@ if(BUILD_TESTS)

# Check if we're running on KNL. If so, we allot more time to tests, due to
# reduced single-core performance.
exec_program(cat ARGS "/proc/cpuinfo" OUTPUT_VARIABLE CPUINFO)
execute_process(COMMAND cat /proc/cpuinfo OUTPUT_VARIABLE CPUINFO)
string(REGEX MATCH "^.*(Xeon Phi).*$" CPU_MODEL_PHI ${CPUINFO})
if(NOT "${CPU_MODEL_PHI}" STREQUAL "")
set(TEST_MONITOR_DEFAULT_TIMEOUT 480)
Expand Down

0 comments on commit 126ceea

Please sign in to comment.