Skip to content
Snippets Groups Projects
Commit 38acfd23 authored by LINJIAO email's avatar LINJIAO email
Browse files

Refs #23606. fix a logic in setting -D_GLIBCXX_USE_CXX11_ABI

parent 39575c91
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ if ( CMAKE_COMPILER_IS_GNUCXX ) ...@@ -22,7 +22,7 @@ if ( CMAKE_COMPILER_IS_GNUCXX )
endif() endif()
set( GCC_COMPILER_VERSION ${CMAKE_CXX_COMPILER_VERSION} CACHE INTERNAL "") set( GCC_COMPILER_VERSION ${CMAKE_CXX_COMPILER_VERSION} CACHE INTERNAL "")
message( STATUS "gcc version: ${GCC_COMPILER_VERSION}" ) 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 # 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) option ( USE_CXX98_ABI "If enabled, sets the _GLIBCXX_USE_CXX11_ABI=0 compiler flag" OFF)
if ( USE_CXX98_ABI ) if ( USE_CXX98_ABI )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment