File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1- # Copyright 2018-2023 Peter Dimov
1+ # Copyright 2018-2025 Peter Dimov
22# Distributed under the Boost Software License, Version 1.0.
33# https://www.boost.org/LICENSE_1_0.txt
44
@@ -17,13 +17,18 @@ target_link_libraries(boost_assert
1717 Boost::config
1818)
1919
20+ # Add headers and .natvis to project, for better IDE integration
21+
2022if (CMAKE_VERSION VERSION_GREATER 3.18 AND CMAKE_GENERATOR MATCHES "Visual Studio" )
2123
24+ # Using target_sources with PRIVATE or PUBLIC on INTERFACE targets requires 3.19
25+
2226 file (GLOB_RECURSE boost_assert_IDEFILES CONFIGURE_DEPENDS include /*.hpp)
2327 source_group (TREE ${PROJECT_SOURCE_DIR} /include FILES ${boost_assert_IDEFILES} PREFIX "Header Files" )
24- list (APPEND boost_assert_IDEFILES extra/boost_assert.natvis)
2528 target_sources (boost_assert PRIVATE ${boost_assert_IDEFILES} )
2629
30+ target_sources (boost_assert PUBLIC extra/boost_assert.natvis)
31+
2732endif ()
2833
2934# BUILD_TESTING is the standard CTest variable that enables testing
You can’t perform that action at this time.
0 commit comments