Skip to content

Commit

Permalink
{cmake} Replace deprecated "exec_program" with "execute_process"
Browse files Browse the repository at this point in the history
  • Loading branch information
asmaloney committed Apr 20, 2024
1 parent 00923d4 commit 9c9aadf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/Tags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ set( T_ ${CMAKE_SYSTEM_PROCESSOR} )
string( TOLOWER ${CMAKE_SYSTEM_NAME} T1_ )

function( add_compiler_version )
exec_program( ${CMAKE_CXX_COMPILER}
ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion
execute_process(
COMMAND ${CMAKE_CXX_COMPILER} ${CMAKE_CXX_COMPILER_ARG1} -dumpversion
OUTPUT_VARIABLE T2_
)
string( REGEX REPLACE "([0-9])\\.([0-9])(\\.[0-9])?" "\\1\\2" T2_ ${T2_} )
Expand Down

0 comments on commit 9c9aadf

Please sign in to comment.