Skip to content

Commit

Permalink
Replace deprecated cmake exec_program() macro
Browse files Browse the repository at this point in the history
  • Loading branch information
fspindle committed Mar 18, 2024
1 parent c98dab9 commit 14b9fdc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CTestConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ endif()

# Find out the version of gcc being used.
if(CMAKE_COMPILER_IS_GNUCC)
exec_program(${CMAKE_CXX_COMPILER}
ARGS -dumpversion
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion
OUTPUT_VARIABLE COMPILER_VERSION
)
#message("COMPILER_VERSION 1: ${COMPILER_VERSION}")
Expand Down

0 comments on commit 14b9fdc

Please sign in to comment.