ShadowMitia / YACHT

YACHT 🛳️: Smoothly riding the waves of C++ projects
11 stars 3 forks source link

CMake namespacing? #9

Open ShadowMitia opened 2 years ago

ShadowMitia commented 2 years ago

I haven't looked into this yet, but should be namespace all functions/macros in yacht? I dunno if CMake has namespacing stuff or convetions btw.

so have instead of set_flag for example, have yacht_set_flag.

It makes everything more verbose, but then it clarifies what's ours and what's not.

hill-a commented 2 years ago

To my knowledge, there is no namespace in CMake (and a quick google search seems to suggest a lack of one).

Prefixing with yacht_ is a good idea, I've been doing that with most of the things like vcpkg or conan.