undefined reference std::__cxx11::basic_string
cmake cxxflags -D_GLIBCXX_USE_CXX11_ABI
in cmake clion
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)
In the case of cmake, it is translated (just an excerpt) to a variable that is checked to define the compiler flag _GLIBCXX_USE_CXX11_ABI
if(CONAN_LIBCXX STREQUAL "libstdc++11")
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=1)
elseif(CONAN_LIBCXX STREQUAL "libstdc++")
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)
endif()