Skip to content

Commit 9607a5f

Browse files
authored
[ASM] Strip new line from version on CMake (#3027)
1 parent efd9338 commit 9607a5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

appsec/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ execute_process(
2323
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/hunter-cache.id.in ${CMAKE_CURRENT_SOURCE_DIR}/hunter-cache.id)
2424

2525
file(READ "../VERSION" appsec_version)
26+
string(STRIP "${appsec_version}" appsec_version)
2627
set(CMAKE_APPSEC_VERSION ${appsec_version})
27-
2828
string(REGEX MATCH "^[^+a-z]*" appsec_short_version "${appsec_version}")
2929
project(ddappsec VERSION ${appsec_short_version})
3030

0 commit comments

Comments
 (0)