Skip to content

Commit d20762a

Browse files
committed
Update source groups to match directory structure, in anticipation of an eventual switch to source_group(TREE) under CMake 3.28+
1 parent 2cd6278 commit d20762a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ if(CMAKE_VERSION VERSION_GREATER 3.18)
2424
# Using target_sources with PRIVATE or PUBLIC on INTERFACE targets requires 3.19
2525

2626
file(GLOB_RECURSE boost_assert_HEADERS CONFIGURE_DEPENDS include/*.hpp)
27-
source_group(TREE ${PROJECT_SOURCE_DIR}/include FILES ${boost_assert_HEADERS} PREFIX "Header Files")
2827
target_sources(boost_assert PRIVATE ${boost_assert_HEADERS})
28+
source_group(TREE ${PROJECT_SOURCE_DIR}/include FILES ${boost_assert_HEADERS} PREFIX "include")
2929
unset(boost_assert_HEADERS)
3030

3131
if(MSVC)
3232

3333
# Only Visual Studio needs this, but the generator may also be Ninja
3434
target_sources(boost_assert PUBLIC extra/boost_assert.natvis)
35+
source_group(TREE ${PROJECT_SOURCE_DIR}/extra FILES extra/boost_assert.natvis PREFIX "extra")
3536

3637
endif()
3738

0 commit comments

Comments
 (0)