Commit eb5903f4 authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles Committed by LAMBERT Jean-charles
Browse files

add tumbleweed detection in cmake

parent 97bbe7cd
......@@ -123,9 +123,9 @@ if(UNIX)
set(MY_OS "Suse")
string(REGEX MATCH "SUSE ([a-zA-Z]*/?[a-zA-Z]*) ([0-9]+\\.[0-9]+)" SUSE "${LINUX_RELEASE}")
if (NOT ${CMAKE_MATCH_2} STREQUAL "")
set(LINUX_NAME "opensuse${CMAKE_MATCH_2}")
set(LINUX_NAME "opensuse-tumbleweed${CMAKE_MATCH_2}")
else()
set(LINUX_NAME "opensuse${CMAKE_MATCH_1}")
set(LINUX_NAME "opensuse-tumbleweed${CMAKE_MATCH_1}")
endif()
string(REPLACE "/" "_" LINUX_NAME ${LINUX_NAME})
set(SPECIFIC_SYSTEM_PREFERED_CPACK_GENERATOR "RPM")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment