]> granicus.if.org Git - icinga2/blobdiff - CMakeLists.txt
Merge pull request #7404 from Icinga/bugfix/livestatus-interval
[icinga2] / CMakeLists.txt
index 29bc81838d59831585685de856b5c9336a2d2a09..735e553f7bb5802d4a501d6f17d19eae48f33e78 100644 (file)
@@ -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)