Skip to content

Commit

Permalink
cmake: don't append patch level 0 to version scheme
Browse files Browse the repository at this point in the history
this way we can keep the old version number scheme

Signed-off-by: Alexander Dahl <[email protected]>
  • Loading branch information
LeSpocky committed May 11, 2016
1 parent 473dda4 commit a787681
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ set(LIBPREFIX_UC ${PROJECT_NAME_UC})
set(PROJECT_VERSION_MAJOR 1)
set(PROJECT_VERSION_MINOR 1)
set(PROJECT_VERSION_PATCH 0)
if(PROJECT_VERSION_PATCH EQUAL 0)
set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
else(PROJECT_VERSION_PATCH EQUAL 0)
set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
endif(PROJECT_VERSION_PATCH EQUAL 0)
message(STATUS "PROJECT_VERSION: ${PROJECT_VERSION}")

set(CGI_DESCRIPTION "A C library to build CGI applications.")
Expand Down

0 comments on commit a787681

Please sign in to comment.