File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,21 @@ if(CMAKE_VERSION VERSION_GREATER 3.18)
2525
2626 file (GLOB_RECURSE headers CONFIGURE_DEPENDS include /*.hpp)
2727 target_sources (boost_assert PRIVATE ${headers} )
28- source_group (TREE ${PROJECT_SOURCE_DIR} FILES ${headers} )
2928 unset (headers)
3029
3130 if (MSVC )
3231
3332 # Only Visual Studio needs this, but the generator may also be Ninja
3433 target_sources (boost_assert PUBLIC extra/boost_assert.natvis)
35- source_group (TREE ${PROJECT_SOURCE_DIR} FILES extra/boost_assert.natvis)
3634
3735 endif ()
3836
37+ # Make IDE project folders match directory structure
38+
39+ get_target_property (sources boost_assert SOURCES )
40+ source_group (TREE ${PROJECT_SOURCE_DIR} FILES ${sources} )
41+ unset (sources )
42+
3943endif ()
4044
4145# BUILD_TESTING is the standard CTest variable that enables testing
You can’t perform that action at this time.
0 commit comments