From 0ee5ff69b9323731bad51c2064c6bcbe85ca697d Mon Sep 17 00:00:00 2001 From: Andy Maloney Date: Sun, 21 Apr 2024 11:32:56 -0400 Subject: [PATCH] {cmake} Strip any newlines from compiler version Ensures the build tag we are constructing doesn't have any newlines. --- cmake/Tags.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/Tags.cmake b/cmake/Tags.cmake index 8d1e67e..24abb38 100644 --- a/cmake/Tags.cmake +++ b/cmake/Tags.cmake @@ -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()