Skip to content

Commit 87e0ec8

Browse files
authored
Add Version.cmake and bump to 1.4.0. (#16)
1 parent b06d96d commit 87e0ec8

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/config.cmake.in
1313
NO_CHECK_REQUIRED_COMPONENTS_MACRO
1414
)
1515

16+
include(${CMAKE_CURRENT_SOURCE_DIR}/Version.cmake)
17+
set(ESPTK_VERSION
18+
${ESPTK_MAJOR_VERSION}.${ESPTK_MINOR_VERSION}.${ESPTK_PATCH_VERSION})
19+
1620
write_basic_package_version_file(
1721
"${CMAKE_CURRENT_BINARY_DIR}/mo2-esptk-config-version.cmake"
18-
VERSION "1.3.12"
22+
VERSION "${ESPTK_VERSION}"
1923
COMPATIBILITY AnyNewerVersion
2024
)
2125

Version.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
set(ESPTK_MAJOR_VERSION 1)
2+
set(ESPTK_MINOR_VERSION 4)
3+
set(ESPTK_PATCH_VERSION 0)

0 commit comments

Comments
 (0)