Mark natvis file as PUBLIC in CMakeLists.txt

This commit is contained in:
Braden Ganetsky
2025-10-05 15:06:40 -05:00
parent e01b7b52a6
commit 1b89cbb265

View File

@@ -27,8 +27,8 @@ if(CMAKE_VERSION VERSION_GREATER 3.18 AND CMAKE_GENERATOR MATCHES "Visual Studio
file(GLOB_RECURSE boost_unordered_IDEFILES CONFIGURE_DEPENDS include/*.hpp)
source_group(TREE ${PROJECT_SOURCE_DIR}/include FILES ${boost_unordered_IDEFILES} PREFIX "Header Files")
list(APPEND boost_unordered_IDEFILES extra/boost_unordered.natvis)
target_sources(boost_unordered PRIVATE ${boost_unordered_IDEFILES})
target_sources(boost_unordered PUBLIC extra/boost_unordered.natvis)
endif()