diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e5f391..d6cc337 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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.")