Skip to content

Commit

Permalink
Merge pull request #32 from h3xx/cmake-fix-docs-path
Browse files Browse the repository at this point in the history
Fix docs install path [Cmake]
  • Loading branch information
folkertvanheusden authored Feb 4, 2024
2 parents 4602393 + e53df30 commit 2ff0188
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ endif()
#=====================
project(multitail LANGUAGES C)
# set VERSION using version file
file (STRINGS "version" VERSION)
file (STRINGS "version" VERSION_CONTENT)
if(VERSION_CONTENT MATCHES "VERSION=([0-9]+\\.[0-9]+\\.[0-9]+)")
set(VERSION "${CMAKE_MATCH_1}")
message(STATUS "Project version: ${VERSION}")
else()
message(FATAL_ERROR "Unable to extract version from ./version")
endif()
#=====================

# usage:
Expand Down

0 comments on commit 2ff0188

Please sign in to comment.