Skip to content

Commit 7b559e1

Browse files
authored
Glob internal header files (#1499)
1 parent df4d70d commit 7b559e1

File tree

2 files changed

+14
-53
lines changed

2 files changed

+14
-53
lines changed

src/bsoncxx/lib/CMakeLists.txt

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ set(bsoncxx_sources_v1
6060
bsoncxx/v1/types/view.cpp
6161
)
6262

63+
file(GLOB_RECURSE bsoncxx_headers
64+
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
65+
CONFIGURE_DEPENDS
66+
"*.hh"
67+
)
68+
6369
list(APPEND bsoncxx_sources
6470
${bsoncxx_sources_private}
6571
${bsoncxx_sources_v_noabi}
@@ -99,23 +105,8 @@ set_dist_list(src_bsoncxx_lib_DIST
99105
${bsoncxx_sources_private}
100106
${bsoncxx_sources_v_noabi}
101107
${bsoncxx_sources_v1}
102-
bsoncxx/private/b64_ntop.hh
108+
${bsoncxx_headers}
103109
bsoncxx/private/config/config.hh.in
104-
bsoncxx/private/export.hh
105-
bsoncxx/private/helpers.hh
106-
bsoncxx/private/immortal.hh
107-
bsoncxx/private/itoa.hh
108-
bsoncxx/private/bson.hh
109-
bsoncxx/private/make_unique.hh
110-
bsoncxx/private/stack.hh
111-
bsoncxx/private/suppress_deprecation_warnings.hh
112-
bsoncxx/private/type_traits.hh
113-
bsoncxx/private/version.hh
114110
bsoncxx/v1/config/config.hpp.in
115111
bsoncxx/v1/config/version.hpp.in
116-
bsoncxx/v1/document/view.hh
117-
bsoncxx/v1/element/view.hh
118-
bsoncxx/v1/oid.hh
119-
bsoncxx/v1/types/value.hh
120-
bsoncxx/v1/types/view.hh
121112
)

src/mongocxx/lib/CMakeLists.txt

Lines changed: 7 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ set(mongocxx_sources_v1
201201
mongocxx/v1/write_concern.cpp
202202
)
203203

204+
file(GLOB_RECURSE mongocxx_headers
205+
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
206+
CONFIGURE_DEPENDS
207+
"*.hh"
208+
)
209+
204210
list(APPEND mongocxx_sources
205211
${mongocxx_sources_private}
206212
${mongocxx_sources_v_noabi}
@@ -254,44 +260,8 @@ set_dist_list(src_mongocxx_lib_DIST
254260
${mongocxx_sources_private}
255261
${mongocxx_sources_v_noabi}
256262
${mongocxx_sources_v1}
263+
${mongocxx_headers}
257264
mongocxx/private/config/config.hh.in
258-
mongocxx/private/export.hh
259-
mongocxx/private/mock.hh
260-
mongocxx/private/mongoc.hh
261-
mongocxx/private/numeric_casting.hh
262-
mongocxx/private/scoped_bson_value.hh
263-
mongocxx/private/scoped_bson.hh
264-
mongocxx/private/ssl.hh
265-
mongocxx/private/utility.hh
266-
mongocxx/v_noabi/mongocxx/append_aggregate_options.hh
267-
mongocxx/v_noabi/mongocxx/bulk_write.hh
268-
mongocxx/v_noabi/mongocxx/change_stream.hh
269-
mongocxx/v_noabi/mongocxx/client_encryption.hh
270-
mongocxx/v_noabi/mongocxx/client_session.hh
271-
mongocxx/v_noabi/mongocxx/client.hh
272-
mongocxx/v_noabi/mongocxx/collection.hh
273-
mongocxx/v_noabi/mongocxx/conversions.hh
274-
mongocxx/v_noabi/mongocxx/cursor.hh
275-
mongocxx/v_noabi/mongocxx/database.hh
276-
mongocxx/v_noabi/mongocxx/gridfs/bucket.hh
277-
mongocxx/v_noabi/mongocxx/gridfs/downloader.hh
278-
mongocxx/v_noabi/mongocxx/gridfs/uploader.hh
279-
mongocxx/v_noabi/mongocxx/index_view.hh
280-
mongocxx/v_noabi/mongocxx/mongoc_error.hh
281-
mongocxx/v_noabi/mongocxx/options/apm.hh
282-
mongocxx/v_noabi/mongocxx/options/server_api.hh
283-
mongocxx/v_noabi/mongocxx/options/tls.hh
284-
mongocxx/v_noabi/mongocxx/options/transaction.hh
285-
mongocxx/v_noabi/mongocxx/pipeline.hh
286-
mongocxx/v_noabi/mongocxx/pool.hh
287-
mongocxx/v_noabi/mongocxx/read_concern.hh
288-
mongocxx/v_noabi/mongocxx/read_preference.hh
289-
mongocxx/v_noabi/mongocxx/scoped_bson.hh
290-
mongocxx/v_noabi/mongocxx/search_index_model.hh
291-
mongocxx/v_noabi/mongocxx/search_index_view.hh
292-
mongocxx/v_noabi/mongocxx/uri.hh
293-
mongocxx/v_noabi/mongocxx/write_concern.hh
294265
mongocxx/v1/config/config.hpp.in
295266
mongocxx/v1/config/version.hpp.in
296-
mongocxx/v1/exception.hh
297267
)

0 commit comments

Comments
 (0)