diff --git a/CMakeLists.txt b/CMakeLists.txt index e88d3e5da..01a30525f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,7 +60,8 @@ option(PUGIXML_COMPACT "Enable compact mode" OFF) option(PUGIXML_NO_XPATH "Disable XPath" OFF) option(PUGIXML_NO_STL "Disable STL" OFF) option(PUGIXML_NO_EXCEPTIONS "Disable Exceptions" OFF) -mark_as_advanced(PUGIXML_NO_XPATH PUGIXML_NO_STL PUGIXML_NO_EXCEPTIONS) +option(PUGIXML_HAS_STRING_VIEW "Enable std::string_view even without C++17 or with STL disabled" OFF) +mark_as_advanced(PUGIXML_NO_XPATH PUGIXML_NO_STL PUGIXML_NO_EXCEPTIONS PUGIXML_HAS_STRING_VIEW) if (APPLE) option(PUGIXML_BUILD_APPLE_FRAMEWORK "Build as Apple Frameworks" OFF)