File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9595
9696echo " glibc compatibility check passed (max=${max_glibc} <= 2.17)"
9797
98+ echo " === CXX11 ABI symbols in libiotdb_session.so ==="
99+ abi_symbols=$( nm -D --demangle " ${SO} " | grep -E ' Session::setStorageGroup\(std::__cxx11::basic_string|SessionDataSet::getColumnNames\[abi:cxx11\]|RowRecord::toString\[abi:cxx11\]' || true)
100+ if [[ -z " ${abi_symbols} " ]]; then
101+ echo " ERROR: libiotdb_session.so was not built with _GLIBCXX_USE_CXX11_ABI=1"
102+ exit 1
103+ fi
104+ printf ' %s\n' " ${abi_symbols} " | head -20
105+
98106echo " === Example package build/link/run smoke test ==="
99107PKG_ZIP=$( find " ${GITHUB_WORKSPACE} /iotdb-client/client-cpp/target" -maxdepth 1 -type f -name " iotdb-session-cpp-*-${PACKAGE_CLASSIFIER} .zip" -print -quit)
100108if [[ -z " ${PKG_ZIP} " ]]; then
Original file line number Diff line number Diff line change @@ -34,9 +34,10 @@ if(NOT TARGET IoTDB::iotdb_session)
3434 add_library (IoTDB::iotdb_session SHARED IMPORTED )
3535 set_target_properties (IoTDB::iotdb_session PROPERTIES
3636 INTERFACE_INCLUDE_DIRECTORIES "${_IOTDB_SESSION_PACKAGE_ROOT} /include" )
37- if ("@IOTDB_SESSION_CXX11_ABI_COMPILE_DEFINITION@" )
37+ set (_IOTDB_SESSION_CXX11_ABI_COMPILE_DEFINITION "@IOTDB_SESSION_CXX11_ABI_COMPILE_DEFINITION@" )
38+ if (_IOTDB_SESSION_CXX11_ABI_COMPILE_DEFINITION)
3839 set_target_properties (IoTDB::iotdb_session PROPERTIES
39- INTERFACE_COMPILE_DEFINITIONS "@IOTDB_SESSION_CXX11_ABI_COMPILE_DEFINITION@ " )
40+ INTERFACE_COMPILE_DEFINITIONS "${_IOTDB_SESSION_CXX11_ABI_COMPILE_DEFINITION} " )
4041 endif ()
4142 if (UNIX )
4243 set_target_properties (IoTDB::iotdb_session PROPERTIES
Original file line number Diff line number Diff line change 7878ENDIF ()
7979
8080if (NOT _iotdb_examples_in_tree)
81- find_package (iotdb-session CONFIG QUIET PATHS "${IOTDB_SDK_ROOT} " NO_DEFAULT_PATH )
81+ find_package (iotdb-session CONFIG QUIET
82+ PATHS "${IOTDB_SDK_ROOT} /cmake" "${IOTDB_SDK_ROOT} "
83+ NO_DEFAULT_PATH )
8284 if (WIN32 )
8385 set (_iotdb_link_lib "${IOTDB_SDK_ROOT} /lib/iotdb_session.lib" )
8486 set (_iotdb_runtime "${IOTDB_SDK_ROOT} /lib/iotdb_session.dll" )
You can’t perform that action at this time.
0 commit comments