Skip to content

Commit 3d0ae1d

Browse files
committed
version: use native zephyr mechanism
1 parent 70fc814 commit 3d0ae1d

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@
2525

2626
cmake_minimum_required(VERSION 3.20.0)
2727

28-
# Read VERSION
29-
file(STRINGS "${CMAKE_SOURCE_DIR}/VERSION.txt" PROJECT_VER LIMIT_COUNT 1)
30-
set_property(DIRECTORY . APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/VERSION.txt")
31-
3228
# Extra components
3329
list(APPEND ZEPHYR_EXTRA_MODULES
3430
"${CMAKE_CURRENT_SOURCE_DIR}/components/cJSON"
@@ -51,7 +47,6 @@ target_sources(app PRIVATE "src/main.c")
5147

5248
# Definitions
5349
target_compile_definitions(app PRIVATE PROJECT_NAME="mender-stm32l4a6-zephyr-example")
54-
target_compile_definitions(app PRIVATE PROJECT_VERSION="${PROJECT_VER}")
5550

5651
# Generate Root CA include file
5752
generate_inc_file_for_target(app "src/AmazonRootCA1.cer" "${ZEPHYR_BINARY_DIR}/include/generated/AmazonRootCA1.cer.inc")

VERSION

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
VERSION_MAJOR = 0
2+
VERSION_MINOR = 1
3+
PATCHLEVEL = 0
4+
VERSION_TWEAK = 0
5+
EXTRAVERSION =

VERSION.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)