dbcppp icon indicating copy to clipboard operation
dbcppp copied to clipboard

Do not collect source files via globbing

Open 90degs2infty opened this issue 2 years ago • 0 comments

Currently, the project's source files are collected via globbing. src/libdbcppp/CMakeLists.txt is one example (see lines 31ff), but this certainly applies to other CMakeLists.txt as well.

The docs explicitly discourage this way of collecting sources:

We do not recommend using GLOB to collect a list of source files from your source tree.

-- reference

Instead, consider listing the sources explicitly.

90degs2infty avatar Jun 20 '23 09:06 90degs2infty