Fix linking for rhel 8.2.
@@ -55,7 +55,9 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" ST
else()
set(CXX_SPECIFIC_WARN_OPTS "-Wsuggest-override -Wnon-virtual-dtor -Wformat-security")
if(VESPA_OS_DISTRO_COMBINED STREQUAL "centos 8" OR
- VESPA_OS_DISTRO_COMBINED STREQUAL "rhel 8.1")
+ (VESPA_OS_DISTRO STREQUAL "rhel" AND
+ VESPA_OS_DISTRO_VERSION VERSION_GREATER_EQUAL "8" AND
+ VESPA_OS_DISTRO_VERSION VERSION_LESS "9"))
set(VESPA_ATOMIC_LIB "")
else()
set(VESPA_ATOMIC_LIB "atomic")
