Skip to content

Commit

Permalink
{cmake} Strip any newlines from compiler version
Browse files Browse the repository at this point in the history
Ensures the build tag we are constructing doesn't have any newlines.
  • Loading branch information
asmaloney committed Apr 21, 2024
1 parent cc8893e commit 0ee5ff6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/Tags.cmake
Expand Up @@ -11,6 +11,7 @@ function( add_compiler_version )
OUTPUT_VARIABLE T2_
)
string( REGEX REPLACE "([0-9])\\.([0-9])(\\.[0-9])?" "\\1\\2" T2_ ${T2_} )
string( STRIP ${T2_} T2_ )
set( T1_ ${T1_}${T2_} PARENT_SCOPE )
endfunction()

Expand Down

0 comments on commit 0ee5ff6

Please sign in to comment.