Skip to content

Commit

Permalink
Merge pull request #2507 from eseiler/fix/cmake
Browse files Browse the repository at this point in the history
[FIX] CMake: Use execute_process
  • Loading branch information
eseiler committed Jan 25, 2024
2 parents 93eac54 + f4277c2 commit 8342223
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions util/cmake/seqan-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,8 @@ if (COMPILER_GCC OR COMPILER_CLANG OR COMPILER_LINTEL)
set (SEQAN_DEFINITIONS ${SEQAN_DEFINITIONS} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64)

# Determine GCC version.
EXEC_PROGRAM(${CMAKE_CXX_COMPILER}
ARGS --version
OUTPUT_VARIABLE __GCC_VERSION)
EXECUTE_PROCESS(COMMAND ${CMAKE_CXX_COMPILER} --version
OUTPUT_VARIABLE __GCC_VERSION)
# Remove all but first line.
STRING(REGEX REPLACE "([^\n]+).*" "\\1" __GCC_VERSION ${__GCC_VERSION})
# Find out version (3 or 2 components).
Expand Down

0 comments on commit 8342223

Please sign in to comment.