diff --git a/CMakeLists.txt b/CMakeLists.txt index 9bcd6769..63c4e3da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()