From 5d269b8e740574b328f263f6b1b01240d07cd7fa Mon Sep 17 00:00:00 2001 From: Jakub Strzebonski Date: Wed, 15 Sep 2021 21:29:51 +0200 Subject: [PATCH] #1393 remove redundant compiler version checking --- cmake/load_bundled_libraries.cmake | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cmake/load_bundled_libraries.cmake b/cmake/load_bundled_libraries.cmake index f9958dd8dd..5802db556a 100644 --- a/cmake/load_bundled_libraries.cmake +++ b/cmake/load_bundled_libraries.cmake @@ -57,12 +57,9 @@ if (vt_asan_enabled) endif() if (vt_ubsan_enabled) - if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" OR - CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR - (CMAKE_CXX_COMPILER_ID - STREQUAL - "GNU" - AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "4.8")) + if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" OR + CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR + CMAKE_CXX_COMPILER_ID STREQUAL "GNU") message(STATUS "Building with undefined behavior sanitizer enabled") else() message(SEND_ERROR "Cannot use UBSan without clang or gcc >= 4.8")