Merge branch 'develop' of https://github.com/vinniefalco/boost-core into feature/pr-122

This commit is contained in:
Peter Dimov 2023-01-12 20:51:58 +02:00
commit 58fd395c51
2 changed files with 15 additions and 0 deletions

View File

@ -20,6 +20,13 @@ target_link_libraries(boost_core
Boost::throw_exception
)
file(GLOB_RECURSE boost_core_IDEFILES CONFIGURE_DEPENDS include/*.hpp)
source_group(TREE ${PROJECT_SOURCE_DIR}/include FILES ${boost_core_IDEFILES})
if (CMAKE_GENERATOR MATCHES "Visual Studio")
list(APPEND boost_core_IDEFILES extra/boost_core.natvis)
endif()
target_sources(boost_core PRIVATE ${boost_core_IDEFILES})
if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
add_subdirectory(test)

8
extra/boost_core.natvis Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="boost::core::basic_string_view&lt;*&gt;">
<DisplayString>{p_,[n_]s}</DisplayString>
</Type>
</AutoVisualizer>