Skip to content

Commit

Permalink
[ASM] Strip new line from version on CMake (#3027)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anilm3 authored Jan 9, 2025
1 parent efd9338 commit 9607a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appsec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand Down

0 comments on commit 9607a5f

Please sign in to comment.