X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=CMakeLists.txt;h=735e553f7bb5802d4a501d6f17d19eae48f33e78;hb=f9812ee1aa79d9d6c413326aa1630010d8c074b9;hp=29bc81838d59831585685de856b5c9336a2d2a09;hpb=60661eaecb21f6640e0821381d908837d62847c1;p=icinga2 diff --git a/CMakeLists.txt b/CMakeLists.txt index 29bc81838..735e553f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,6 +111,8 @@ endif() # NuGet on Windows requires a semantic versioning, example: 2.10.4.123 (only 4 element, only numeric) string(REGEX REPLACE "-([0-9]+).*$" ".\\1" ICINGA2_VERSION_SAFE "${ICINGA2_VERSION}") +string(REGEX REPLACE "-[^\\.]*(.*)$" "\\1" ICINGA2_VERSION_SAFE "${ICINGA2_VERSION_SAFE}") +message(STATUS "ICINGA2_VERSION_SAFE=${ICINGA2_VERSION_SAFE}") if(WIN32) set(Boost_USE_STATIC_LIBS ON)