From a385ae6a33286ea056196b3fd488c8f936a57e35 Mon Sep 17 00:00:00 2001 From: Jiao Lin <linjiao@ornl.gov> Date: Thu, 27 Sep 2018 09:45:25 -0400 Subject: [PATCH] Refs #23606. fix a logic in setting -D_GLIBCXX_USE_CXX11_ABI --- buildconfig/CMake/GNUSetup.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildconfig/CMake/GNUSetup.cmake b/buildconfig/CMake/GNUSetup.cmake index ebb044b0372..71e57587cac 100644 --- a/buildconfig/CMake/GNUSetup.cmake +++ b/buildconfig/CMake/GNUSetup.cmake @@ -22,7 +22,7 @@ if ( CMAKE_COMPILER_IS_GNUCXX ) endif() set( GCC_COMPILER_VERSION ${CMAKE_CXX_COMPILER_VERSION} CACHE INTERNAL "") message( STATUS "gcc version: ${GCC_COMPILER_VERSION}" ) - if ( GCC_COMPILER_VERSION VERSION_LESS "5.1.0" ) + if ( NOT (GCC_COMPILER_VERSION VERSION_LESS "5.1.0") ) # Add an option to use the old C++ ABI if gcc is 5 series option ( USE_CXX98_ABI "If enabled, sets the _GLIBCXX_USE_CXX11_ABI=0 compiler flag" OFF) if ( USE_CXX98_ABI ) -- GitLab