diff --git a/CMakeLists.txt b/CMakeLists.txt index a0f9781..133b281 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.0 FATAL_ERROR) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") -project(duckscraper VERSION 0.2 LANGUAGES CXX) +project(duckscraper VERSION 0.2.1 LANGUAGES CXX) option(BUILD_SHARED_TIDY "Wheter you want to build tidy-html5 as a shared library" OFF) @@ -57,6 +57,7 @@ target_link_libraries(${PROJECT_NAME} #their cmake_minimum_required to 3.0+. unset(PROJECT_VERSION_MAJOR) unset(PROJECT_VERSION_MINOR) +unset(PROJECT_VERSION_PATCH) unset(PROJECT_VERSION) set(BUILD_SHARED_LIB ${BUILD_SHARED_TIDY}) #for tidy add_subdirectory(lib/tidy) diff --git a/src/commandline.cpp b/src/commandline.cpp index 94bb6df..451d42a 100644 --- a/src/commandline.cpp +++ b/src/commandline.cpp @@ -31,9 +31,12 @@ namespace po = boost::program_options; namespace duck { namespace { const char* const g_version_string = - PROGRAM_NAME " v" STRINGIZE(VERSION_MAJOR) "." STRINGIZE(VERSION_MINOR) + PROGRAM_NAME " v" + STRINGIZE(VERSION_MAJOR) "." + STRINGIZE(VERSION_MINOR) "." + STRINGIZE(VERSION_PATCH) #if VERSION_BETA - "b" + "b" #endif ; } //unnamed namespace diff --git a/src/duckscraperConfig.h.in b/src/duckscraperConfig.h.in index fb18d09..415c256 100644 --- a/src/duckscraperConfig.h.in +++ b/src/duckscraperConfig.h.in @@ -24,6 +24,7 @@ #define VERSION_MAJOR @PROJECT_VERSION_MAJOR@ #define VERSION_MINOR @PROJECT_VERSION_MINOR@ #define VERSION_BETA @PROJECT_VERSION_BETA@ +#define VERSION_PATCH @PROJECT_VERSION_PATCH@ #define VERSION_GIT "@PROJECT_VERSION_GIT@" #endif