heroiclabs / nakama-cpp

Generic C/C++ client for Nakama server.
https://heroiclabs.com/docs/cpp-client-guide
Apache License 2.0
68 stars 25 forks source link

Allow vcpkg features to be fed to the cmake build system #85

Closed lugehorsam closed 1 year ago

lugehorsam commented 1 year ago

This change further allows vcpkg consumers to interface with our build system by toggling vcpkg features on/off based on the requirements of the platform. The existing approach for internal builds was to append to VCPKG_MANIFEST_FEATURES which would cause double entries in this variable if built externally.

Also renamed BUILD_{HTTP | WS}_IS_BLANK to the more explicit WITH_EXTERNAL_{HTTP | WS}.

Also cleaned up some of the branching logic for our factory methods.