We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce4e8e5 commit f05f059Copy full SHA for f05f059
1 file changed
CMakeLists.txt
@@ -25,17 +25,19 @@ if(CMAKE_VERSION VERSION_GREATER 3.18)
25
26
file(GLOB_RECURSE headers CONFIGURE_DEPENDS include/*.hpp)
27
target_sources(boost_assert PRIVATE ${headers})
28
- source_group(TREE ${PROJECT_SOURCE_DIR} FILES ${headers})
29
unset(headers)
30
31
if(MSVC)
32
33
# Only Visual Studio needs this, but the generator may also be Ninja
34
target_sources(boost_assert PUBLIC extra/boost_assert.natvis)
35
- source_group(TREE ${PROJECT_SOURCE_DIR} FILES extra/boost_assert.natvis)
36
37
endif()
38
+ get_target_property(sources boost_assert SOURCES)
+ source_group(TREE ${PROJECT_SOURCE_DIR} FILES ${sources})
39
+ unset(sources)
40
+
41
42
43
# BUILD_TESTING is the standard CTest variable that enables testing
0 commit comments