diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d4303e1b9..06e9762e9b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,7 +65,7 @@ elseif (APPLE) elseif (UNIX) set(CX_PLATFORM "linux") file(STRINGS "/etc/os-release" OS_RELEASE_CONTENT) - string(REGEX MATCH "DISTRIB_RELEASE=([0-9]+\\.[0-9]+)" _ ${OS_RELEASE_CONTENT}) + string(REGEX MATCH "VERSION_ID=\"?([0-9]+\\.[0-9]+)\"?" _ ${OS_RELEASE_CONTENT}) set(UBUNTU_VERSION ${CMAKE_MATCH_1}) endif() message(STATUS "QUIC Platform: ${CX_PLATFORM}")