From d3e1f678605b0d61fb1795e4fed177b88a801f4e Mon Sep 17 00:00:00 2001 From: Anil Mahtani <929854+Anilm3@users.noreply.github.com> Date: Thu, 9 Jan 2025 13:17:22 +0000 Subject: [PATCH] [ASM] Strip new line from version on CMake --- appsec/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appsec/CMakeLists.txt b/appsec/CMakeLists.txt index 89b56fdc9d..cc0ecd19c3 100644 --- a/appsec/CMakeLists.txt +++ b/appsec/CMakeLists.txt @@ -23,8 +23,8 @@ execute_process( configure_file(${CMAKE_CURRENT_SOURCE_DIR}/hunter-cache.id.in ${CMAKE_CURRENT_SOURCE_DIR}/hunter-cache.id) file(READ "../VERSION" appsec_version) +string(STRIP "${appsec_version}" appsec_version) set(CMAKE_APPSEC_VERSION ${appsec_version}) - string(REGEX MATCH "^[^+a-z]*" appsec_short_version "${appsec_version}") project(ddappsec VERSION ${appsec_short_version})